Visual Studio - Unable to obtain chrome using Selenium Manager

1,628 views
Skip to first unread message

Rafael Santos (Rafa)

unread,
Feb 29, 2024, 9:32:23 AM2/29/24
to Selenium Users

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:\Temp\Selenium\chromedriver.exe [2024-02-28T22:36:35.504Z INFO ] Browser path: C:\Program Files\Google\Chrome\Application\chrome.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:\App\bin\Debug\net8.0\selenium-manager\windows\selenium-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?


2024-02-28_20-05.png2024-02-28_20-05_1.png2024-02-28_20-08.png

Thank you in advance.

ralph van der horst

unread,
Mar 1, 2024, 2:49:43 AM3/1/24
to seleniu...@googlegroups.com

Ensure that the Selenium WebDriver NuGet package version you are using is compatible with your ChromeDriver version. Sometimes, updating Selenium WebDriver to the latest version can resolve issues.


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/6a58c849-cb89-4e94-a0d2-7cdc567b620bn%40googlegroups.com.

Rafael Santos (Rafa)

unread,
Mar 1, 2024, 9:45:51 AM3/1/24
to Selenium Users
Thank you for your assistance.

Following are my project the dependencies, it's using the lastest version of them:

<ItemGroup>
  <PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
  <PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.1" />
  <PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
  <PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
  <PackageReference Include="Selenium.Support" Version="4.18.1" />
  <PackageReference Include="Selenium.WebDriver" Version="4.18.1" />
  <PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="122.0.6261.9400" />
  <PackageReference Include="System.Net.Primitives" Version="4.3.1" />
</ItemGroup>


My Chrome version is: Versão 122.0.6261.95 (Versão oficial) 64 bits

2024-03-01_11-44_1.png

2024-03-01_11-44.png

Rafael Santos (Rafa)

unread,
Mar 1, 2024, 10:39:09 AM3/1/24
to Selenium Users
Thank you so much. I uninstalled and installed chrome browser and deleted the chromedriver from project folder. After that it ran fine. Thank you.
Reply all
Reply to author
Forward
0 new messages