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