Forum Discussion

troyyerJP's avatar
troyyerJP
Contributor
4 months ago
Solved

Running Edge in IE mode not seeing elements

Hi , I saw this mentioned a few times, but I didnt see any resolution as such. (https://community.smartbear.com/discussions/testcomplete-questions/running-edge-in-ie-mode/260427) Currently I have a...
  • troyyerJP's avatar
    4 months ago

    Ok on looking at the screenshot you provided of the TestComplete Object Browser it seems like it maps the page as a browserWindow rather than a page

    So trying to using the TestRecorder plugin to click and record a test is actually useless in this situation as it will show what was the previous visible Browser Page

    Screenshot below shows that I am on the site "The Internet (the-internet.herokuapp.com)" in IE mode yet the Object recorder Spy marks that the Page being viewed is the previously opened page before the Edge Browser opens IE mode

    so for the case of recording in Edge IE Mode, you have to  

    1. having the TestComplete Extension to view Edge in the TestComplete Object Browser
    2. Open the Page under test in IE Mode
    3. enter TestComplete and open the Object Browser Tab
    4. Expand the Browser("edge") node and keep traversing down to the Frame and Tab that has the website

    now you can view the elements of the page within the Object but you cannot record a Keyword test or a Script Test. you will have to manually add the object from the Object Browser to your Name Mapping and then script it out accordingly

    so a Browser test that would normally go from 

    browser --> page --> element 

    will have to go to the Alias of the shell object viewer which has the view of the page.  

    def Test1():
      browser = Aliases.browser
      browserWindow = browser.BrowserWindow
      Browsers.Item[btEdge].Navigate("https://the-internet.herokuapp.com/")
      Aliases.browser.BrowserWindow.Chrome_WidgetWin_2.BrowserWindow.FrameTab.tabpage.ShellDocObjectView.browser.pageTheInternet.linkBrokenImages.click()