skip to Main Content

If I execute the Selenium Manager from CMD (same app folder) it shows everything fine:

windows> ./selenium-manager --browser chrome
[2024-02-28T22:36:35.504Z INFO ] Driver path: C:TempSeleniumchromedriver.exe
[2024-02-28T22:36:35.504Z INFO ] Browser path: C:Program FilesGoogleChromeApplicationchrome.exe

But if I run my application in the Visual Studio, I get this error:

IWebDriver driver = new ChromeDriver();

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’

WebDriverException: Selenium Manager process exited abnormally with 69
code: D:AppbinDebugnet8.0selenium-managerwindowsselenium-manager.exe
–browser "chrome" –language-binding csharp –output json Standard Output >> { "logs": [
{
"level": "ERROR",
"timestamp": 1709160132,
"message": "Driver unavailable: Driver path: "
} ], "result": {
"code": 69,
"message": "Driver unavailable: Driver path: ",
"driver_path": "",
"browser_path": "" } }

There’s a lot of topics related to the same issue but without solutioun. Does anyone know how to solve it?

Thank you in advance.

2

Answers


  1. Chosen as BEST ANSWER

    After uninstalling and installing Chrome WebBrowser I deleted the chromedriver.exe in my project folder and it worked.


  2. Try using this https://github.com/bonigarcia/webdrivermanager w/o any extra needs of driver download. It will download any needed driver and set all from scratch.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search