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 Web App under test, that is opened up in Edge using IE mode.
I have tried the TestComplete v15 Edge Plugin as well as the chrome Edge plug in and it does view the element on the Edge Chromium page, when Edge is opened normally. However when I have tried to open the web application in Edge IE mode, at this point TestComplete cannot capture or view any components
Version of TestComplete tried 15.60.44.7
Plug-ins tried
https://microsoftedge.microsoft.com/addons/detail/smartbear-test-extension/hlicljijpmhapnbjeddcmimplcalfkic <-- v15
Trying chrome plugin
https://chromewebstore.google.com/detail/smartbear-test-extension/phbpiacnjjgjkdnemiaakobckdigehbp <-- v15
the app is already mentioned in my Allowed sites for IE mode as per https://support.microsoft.com/en-us/microsoft-edge/internet-explorer-mode-in-microsoft-edge-6604162f-e38a-48b2-acd2-682dbac6f0de
Note: I have found a hacky way to get Internet Explorer 11 to open, but unsure how long this hack would work. Using this way the page was viewable by the object spy within the actual IE 11 window (iexplore.exe). however when I then tried to change the browser in the scrpit to Edge and run the test it would then not execute
Browsers.Item[btEdge].Run("UrlofbadinternalapprunninginIE11mode")
any suggestions on what to change on my machine for this to work?
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()