Running Edge in IE mode

Originally posted by TikiHardBop on November 16, 2023

This has been asked a couple of times, but I have yet to see a satisfactory answer. Our app opens up in the Edge browser in IE mode. You can record a test, albeit slowly. When you try to run the test, you get an unable to find object Sys.Browser(“iexplore”) error. Going to the object browser, you do see a Browser(“iexplore”) object.

Any suggestions on how to get around this problem? We are in the process of transitioning, but it is going to take a while, so a workaround be be very helpful to us.

Originally posted by Marsha_R on November 16, 2023

What version of TestComplete are you using? What version of Edge are you using?

Originally posted by TikiHardBop on November 16, 2023

TestComplete: 15.55.33.7 x64

Edge 119.0.2151.58 x64

Originally posted by rraghvani on November 16, 2023

See Internet Explorer mode in Microsoft Edge. You should be using Sys.Browser(“edge”) and turn on Internet Explorer mode in Edge.

Originally posted by TikiHardBop on November 16, 2023

I changed the command to Browsers.Item[btEdge].Navigate(“[URL of AUT”) and I am now getting this error:

TikiHardBop_0-1700175574438.png

Originally posted by Marsha_R on November 16, 2023

Did you check the extension? TestComplete error messages are pretty good at telling you what’s wrong.

Originally posted by rraghvani on November 17, 2023

Ensure you have SmartBear Test Extension installed and enabled.

Do not upgrade you version of TC, as v15.55.33.7 seems to be stable.

Originally posted by TikiHardBop on November 17, 2023

The SmartBear Extension is installed and running.

Originally posted by rraghvani on November 17, 2023

Are you using Python or JavaScript as the language?

Originally posted by TikiHardBop on November 17, 2023

Python

Originally posted by rraghvani on November 17, 2023

Here’s a script example in Python,

def main():
    Browsers.Item[btEdge].Run("https://smartbearstore.smartbear.com/samples/TestComplete14/smartstore/");
    page = Sys.Browser("edge").Page("*");
    phone = page.Find("Name", "Article(0)", 100);
    if (phone.Exists):
        # Highlight mobile phone
        Sys.HighlightObject(phone)

That will highlight the mobile phone item.

Using TC v15.55.53.7 and Edge v119.0.2151.58, with IE Mode set to Allowed

Originally posted by TikiHardBop on November 17, 2023

Thanks so much for providing the example I can test with!

So when I started the test, the Edge browser looked like this:

StartStatus.PNG

You can see that the browser is in Edge mode. The icon on the left shows that the TestComplete extension is installed and active.

So when I run the snippet you gave me, I get the following error:

Which does say to me that it is having problems talking to the extension. Following the highlighted link, however, takes me to this page:

which re-affirms to me that the extension is installed.

So as a further test, I tried reloading that same page in regular Edge mode and when I tried to record a test, I got this error:

EdgeModeError.PNG

It then takes me to the page just above that says the extension is installed.

So it appears to me that something hinky is going on. I am able to run under Chrome without any issues at all. We did recently have an issue with the tests not running due to a group policy that was removing values from the registry. Could we be having problems with something like this?

Originally posted by rraghvani on November 17, 2023

Is the Object Spy tool able to recognise any of the UI objects in https://smartbearstore.smartbear.com/samples/TestComplete14/smartstore/? Either in IE Mode or not.

If not, can you perform a manual reinstall of the extension as shown in About SmartBear Test Extension. Ensure it’s actually enable,

It is possible that Group Policy settings could effect Edge.

Originally posted by TikiHardBop on November 17, 2023

I tried the Object Spy Tool and it can’t seem to recognize anything smaller than the entire page.

I have tried installing and re-installing the extension multiple times to no effect.

Originally posted by rraghvani on November 17, 2023

It’s definitely the SmartBear Test Extension that is not working, or is not being enabled. Your policy settings could be disabling extensions from running on Edge. I suggest you speak to your IT team, to see what has changed, and if possible allow the extension.