Forum Discussion

Muthu22Pandi's avatar
Muthu22Pandi
New Contributor
9 months ago

Chrome is not launching while executing the code in TestExecute

Hi All,

Unable to launch the chrome browser in Azure VM. I have enabled the SmartBear Test extension in the chrome browser. Please find the code below for launching the browser. But this same code is running fine in the desktop machine. Please help me to solve this problem.

URL = "https://smartbear.com/"   

   //Opens the chrome browser.
    Browsers.Item(btChrome).Run();
      
    //Navigates to the url.
    Browsers.Item(btChrome).Navigate(URL);
      
    //Obtains the browser process
    var browser = Sys.Browser("*");
      
    // Obtains the page currently opened.
    var page = browser.Page("*");
      
    //Placing static delay to support element to be loaded.
    page.wait(1000);
      
    //Return the instance of the page.
    return page;

Error Shown:

Unable to find the object Sys.Browser("chrome"). 

The object with the specified attributes does not exist.

Thanks in advance!!

Regards,

Muthu

2 Replies

  • MW_Didata's avatar
    MW_Didata
    Regular Contributor

    Is Chrome installed on the Azure VM? if yes is the TC extention also installed?

     

    EDIT: nvm, I just read the rest of your post. does Edge work?

  • Yes, Edge is working, But chrome is not working I have enabled the TC extension in chrome browser.