Forum Discussion

S_Lecault's avatar
S_Lecault
New Contributor
26 days ago

Chrome browser starts with Sad Face

Struggling with existing test scripts starting a Chrome Browser.

The code works fine on my laptop, but other team members have different behaviors.

I use Browsers.item[chrome].Run() to start my browser.  Where it fails, Chrome starts, one empty tab page with a sad face. No mather what I try to open on the browser links, new tabs, it is like we have not internet or no priviledge at all.

I did go through configuration steps. The TestComplete extension is colored on Chrome, the TestComplete has Desktop, web amd Mobile Extensions installed and ticked.

Running TestComplete and Testexecute 15.71

on Windows 11 with 125.0.6422

Any suggestions is welcome

 

  • Hassan_Ballan's avatar
    Hassan_Ballan
    Regular Contributor

    Perhaps you can try this code using your correct NameMaping

    function Test1()
    {
      Browsers.Item(btChrome).Run();
      Browsers.CurrentBrowser.Navigate("https://www.google.com/");
      Aliases.browser.pageGoogle.formSearch.textareaSearch.Keys("TestComplete");
    }

     

    • S_Lecault's avatar
      S_Lecault
      New Contributor

      your line 3 is exactly how I start the browser, once started, whatever page/url I try, the browser has sad face in the left corner of the tab. 

      Opening new tabs, or typing urls even manually on the keybords does not get it to work. I need to close Chrome and restart it.

      I my browser was manually started, everything works fine.  Looks like some sort of rights issue (I am admin on the problematic computer. Test Complete is started via an icon with compatibility set "exec as Admin"

       

      • Hassan_Ballan's avatar
        Hassan_Ballan
        Regular Contributor

        What language is your line? Browsers.item[chrome].Run()

        My line is JavaScript "Browsers.Item(btChrome).Run();" and the differences bracket and browser name.

        I understand when you start Chrome yourself it works properly, and it only fails when TestComplete run Chrome. Try to run Chrome with "exec as Admin", do you have same problem? if so can you run TestComplete without the "exec as Admin"?