“OpenQA.Selenium.WebDriverException : unknown error: cannot find Chrome binary”

The below error occurs when Selenium can’t find the latest Chrome driver on the system (Mostly the Windows agents to run the Selenium UI TestCases)

"OpenQA.Selenium.WebDriverException : unknown error: cannot find Chrome binary"

Solution : This can be explicitly solved by doing any of the below options

  • Hardcode the Chrome driver path on your script (or)
  • Install the Chrome driver explicitly

This issue generally occurs when Selenium is not able to find Chrome driver version and also due to the missing path variable for Chrome.exe (Since Chrome is installed into “C:\Program Files\Google\Chrome\Application\” this issue may occur

You may also like...