selenium: [🐛 Bug]: OpenQA.Selenium.NoSuchDriverException

What happened?

I have updated vom Verison 4.11 to 4.12 (also tried the latest 4.12.2 version) and since the update, I am getting the following error message:

`Error: OpenQA.Selenium.NoSuchDriverException: Unable to obtain chrome using Selenium Manager; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location —> OpenQA.Selenium.WebDriverException: Error starting process: C:\inetpub\wwwroot\Gruppenhaus.Web\selenium-manager/windows/selenium-manager.exe --browser “chrome” --output json —> OpenQA.Selenium.WebDriverException: Selenium Manager process exited abnormally with -1073740791 code: C:\inetpub\wwwroot\Gruppenhaus.Web\selenium-manager/windows/selenium-manager.exe --browser “chrome” --output json

at OpenQA.Selenium.SeleniumManager.RunCommand(String fileName, String arguments) — End of inner exception stack trace — at OpenQA.Selenium.SeleniumManager.RunCommand(String fileName, String arguments) at OpenQA.Selenium.SeleniumManager.DriverPath(DriverOptions options) at OpenQA.Selenium.DriverFinder.FullPath(DriverOptions options) — End of inner exception stack trace — at OpenQA.Selenium.DriverFinder.FullPath(DriverOptions options) at OpenQA.Selenium.Chromium.ChromiumDriver.GenerateDriverServiceCommandExecutor(DriverService service, DriverOptions options, TimeSpan commandTimeout) at OpenQA.Selenium.Chromium.ChromiumDriver…ctor(ChromiumDriverService service, ChromiumOptions options, TimeSpan commandTimeout) at OpenQA.Selenium.Chrome.ChromeDriver…ctor(ChromeDriverService service, ChromeOptions options, TimeSpan commandTimeout) at OpenQA.Selenium.Chrome.ChromeDriver…ctor(ChromeDriverService service, ChromeOptions options) ` Works finde in 4.11

How can we reproduce the issue?

ChromeOptions _chromeOptions = new();
         _chromeOptions.AddArgument("--headless");
         IWebDriver driver = new ChromeDriver(_chromeOptions);

Relevant log output

No logfile as in NetCore

Operating System

Windows Server

Selenium version

4.12

What are the browser(s) and version(s) where you see this issue?

Chrome

What are the browser driver(s) and version(s) where you see this issue?

should be determined by the download. 4.11 auto downloads 116.0.5845.96

Are you using Selenium Grid?

No response

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Comments: 30 (19 by maintainers)

Most upvoted comments

Great, thanks for checking. I have just sent a PR to fix it.