Azure DevOps is triggering and operating assessments on a VM.
All my assessments are working tremendous on native machine.
On VM, Whereas attempting to launch Chrome browser utilizing ChromeDriver
and WebDriverManager
, assessments are failing at LaunchChromeDriver
technique with failure as ‘Entry is Denied’ at step new ChromeDriver
(choices);
That is how the tactic appears to be like like:
public static IWebDriver LaunchChromeDriver()
{
attempt
{
new WebDriverManager.DriverManager().SetUpDriver(new ChromeConfig());
ChromeOptions choices = new ChromeOptions();
driver = new ChromeDriver(choices);
return driver;
}
catch(Exception e)
{
log.data("Exception is "+e);
return null;
}
}
Am I lacking one thing or do I would like to change the code?
Did anybody expertise the identical?
Getting an exception as under:
System.ComponentModel.Win32Exception (0x80004005): Entry is denied
at System.Diagnostics.Course of.StartWithCreateProcess(ProcessStartInfo startInfo)
at OpenQA.Selenium.DriverService.Begin()
at OpenQA.Selenium.Distant.DriverServiceCommandExecutor.Execute(Command commandToExecute)
at OpenQA.Selenium.Distant.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Distant.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
at OpenQA.Selenium.Distant.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
at OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeDriverService service, ChromeOptions choices, TimeSpan commandTimeout)