Forum Discussion

djvakarjoshi1's avatar
djvakarjoshi1
Occasional Contributor
5 years ago
Solved

Launching browser

Hi,

 

I am trying to open chrome using the following code:

Browsers.Item(btchrome).Run(LoginURL);

Sys.Browser().BrowserWindow(0).Maximize();

 

But this throws exception as Error Undefined. May I know what has to be done in this.

  • tristaanogre's avatar
    tristaanogre
    5 years ago

    Two questions:

     

    1) What version of Chrome are you running?

    2) What version of TestComplete are you running?

    If Chrome has updated recently, you may be running a version of Chrome that needs a patch for TC.  Currently, there are patches available for Chrome 79 (the latest version) for TC 14.20 and 14.30.

13 Replies

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    Check if

    Browsers.Item(btChrome).Run(LoginURL); // Capital 'C'

    helps...

     

     

    • djvakarjoshi1's avatar
      djvakarjoshi1
      Occasional Contributor

      Its Capital C only, bymistake here it is small. while opening chrome browser it enters into exception and throws error as error undefined as in attached screenshot.

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    Can you post the screenshot of the whole test window? (Code or Keyword)

    Does LoginURL have value assigned? Does it contain valid web address?

    Does the Additional Info test log panel contain some extended information?

     

    • tristaanogre's avatar
      tristaanogre
      Esteemed Contributor

      Do you have a web license?  The Browsers object is not available if you're not licensed for it.

      • sonya_m's avatar
        sonya_m
        SmartBear Alumni (Retired)

        Thanks everyone for participating in this thread. 

        Hi djvakarjoshi1 , were you able to solve this? If not, please provide the community members with the details they are requiring and we will try our best to help.