Ask a Question

Facing issue while launching browser using testcomplete - Firefox and Edge

SOLVED
nandini_thota
Occasional Contributor

Facing issue while launching browser using testcomplete - Firefox and Edge

Hi Community,

Issue with Microsoft Edge:

I am using Testcomplete version:  15.44.11.7 and Edge version: 111.0.1661.44 (Official build) (64-bit)

when I am trying to launch a edge browser using below code in screenshot:

nandini_thota_0-1679396725204.png

getting the issue:

JavaScript runtime error.
An internal error occurred while running the Microsoft Edge browser.
Details: Unspecified error
 
Issue with Firefox:
I am using Testcomplete version:  15.44.11.7 and Firefox version: 111.0(64-bit),
I am able to launch Firefox but not able to navigate to the URL.
nandini_thota_1-1679397062687.png

 

But I don't see the patches with the versions mentioned above.
 
Additional info: Launching and navigating using chrome without any issue
 
Can someone please help!
Thanks in advance,
Nandini.
8 REPLIES 8
rraghvani
Trusted Contributor

I'm using TC v15.49.6.7 x64 and Edge v111.0.1661.44 (Official build) (64-bit), and it's able to launch the browser and navigate to https://smartbear.com/ without issues - using the same keyword test as you.

 

I suggest closing down all instances of Edge, including hidden ones (see Task Manager)

nandini_thota
Occasional Contributor

Hi raghvani...thanks for responding!

I double checked in task manager but no browser instance is found

rraghvani
Trusted Contributor

Can you convert your keyword test to script, and post the coding please?

nandini_thota
Occasional Contributor

function Test4()
{
//Launches the specified browser and opens the specified URL in it.
Browsers.Item(btEdge).Run("https://smartbear.com/");
}

rraghvani
Trusted Contributor

Then that should work. However, it's worth having a look at the Version History, something may have been fixed.

 

vantaku01
Occasional Contributor

Hi Nandini,

First you need to setup the tested apps in your project.

then give the loacation of ".exe" file for tested application

later you should run the tested application and then navigate to the required browser.

 

Code as Follows:

function Edge_Browser()
{
TestedApps.msedge.Run();
Browsers.Item(btEdge).Navigate("https://smartbear.com/");
}

 

 

nandini_thota
Occasional Contributor

Used the below code for edge and its working fine for edge:

  1. br = Browsers.Item(btEdge);

    br.RunOptions = "--do-not-de-elevate";

    br.Run(); 

rraghvani
Trusted Contributor

Do you have UAC enabled?

cancel
Showing results for 
Search instead for 
Did you mean: