Running Edge in IE mode not seeing elements

Originally posted by troyyerJP on January 19, 2024

Hi ,

I saw this mentioned a few times, but I didnt see any resolution as such. (/t/running-edge-in-ie-mode/694)

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

SmartBear Test Extension - Microsoft Edge Add-ons ← 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 Internet Explorer mode in Microsoft Edge | Microsoft Support

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?

Originally posted by rraghvani on January 20, 2024

You are using TC v15.60.44.7? I suggest you try an older version such as v15.55, as there’s been ongoing issues with various releases.

Originally posted by troyyerJP on January 20, 2024

It didn’t really matter what version I had tried…didn’t get it to work

15.59 was first tried, then I did the update to 15.60 cause it came thru as an auto update. then deleted that version and downloaded 15.48.

Originally posted by rraghvani on January 21, 2024

Ensure the SmartBear Test Extension is installed.

Originally posted by troyyerJP on January 21, 2024

As mentioned in my post I have already tried the extensions for v15.59

https://microsoftedge.microsoft.com/addons/detail/smartbear-test-extension/hlicljijpmhapnbjeddcmimplcalfkic

when i used Version: 15.48.6.7 x64, TestComplete pushed me to use the V14 of the extension

microsoftedge.microsoft.com/addons/detail/smartbear-test-extension/dnboadgmjeggdengfhphcmlclboenlco

In my gif you can see the red capture box when the page is loaded in normal edge chromium rendering. Not sure what else you have installed to get yours working.

Can you provide the extension link from your edge instance that ran for your testcomplete.

What is your version of edge that got it to work on your end?

The other thing I notice in your screenshot is the missing right-hand side sidebar so I might try and disable that and redo the check

*Edited to confirm the version of the Edge Extension used per version of TestComplete

Originally posted by troyyerJP on January 21, 2024

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()