Forum Discussion

nandini_thota's avatar
nandini_thota
Contributor
11 months ago
Solved

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:

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.

 

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.
  • 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(); 

8 Replies

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    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's avatar
      nandini_thota
      Contributor

      Hi raghvani...thanks for responding!

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

  • vantaku01's avatar
    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/");
    }

     

     

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