Running Edge in IE mode not seeing elements
- 10 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
- having the TestComplete Extension to view Edge in the TestComplete Object Browser
- Open the Page under test in IE Mode
- enter TestComplete and open the Object Browser Tab
- 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()