Selenium WebDriver - Could not find Chrome binary

Viewed 40445

I'm trying to get Selenium tests running with Chrome. I'm using C#.

var options = new OpenQA.Selenium.Chrome.ChromeOptions();
options.BinaryLocation = @"C:\Users\Vilem\AppData\Local\Google\Chrome\Application\";

using (IWebDriver driver = new OpenQA.Selenium.Chrome.ChromeDriver(options))
{
...

Seems like chromedriver.exe was found but it could find the Chrome binary. I set up the path to chrome.exe explicitly after automatic search failed. I even tried it with "chrome.exe" at the end. I always get the same result:

Could not find Chrome binary at:

C:\Users\Vilem\AppData\Local\Google\Chrome\Application


FYI: I have a question concerning 3 selenium webdrivers. I'm trying to split the question into multiple so the discussion is easier. Original: Selenium WebDriver - No driver is working for me

7 Answers

enter image description here

  1. I reinstalled chrome and made sure it exists in the given folder.
  2. Made sure the selenium project is in the repos and not on desktop
  3. Updated all the drivers using Manage Nuget Packages

you should have installed chrome in your machine

and your chromedriver.exe version should accordingly to chrome download form

https://chromedriver.chromium.org/downloads

and given new chromedriver.exe path to your script..

This works well for me

Related