Search code examples
c#visual-studioselenium-webdriverselenium-chromedrivermacos-high-sierra

Visual Studio Mac Doesn't Recognize Chrome Driver in Path


I'm new to using C# for Selenium WebDriver. I come from a background using Java and Python on Windows. So I'm also new to OSX, Visual Studio and C#. I've started a project with .NET Application Console, added Selenium packages to NuGet, and downloaded/added ChromeDriver to project path. I'm baffled to as why I'm getting this error.

OpenQA.Selenium.DriverServiceNotFoundException has been thrown

"The chromedriver file does not exist in the current directory or in a
directory on the PATH environment variable. The driver can be 
downloaded at https://chromedriver.storage.googleapis.com/
index.html."

Working with Visual Studio 7.5 (build 1254) macOS High Sierra Version 10.13.4

I've also added Chrome Driver path to bash_profile too.

Any help is appreciated. If more information is needed, I won't hesitate to provide :) Thanks!

IDE

Path


Solution

  • You have to put ChromeDriver.exe file inside bin/debug folder.

    Further installing instructions at https://www.kenst.com/2015/03/installing-chromedriver-on-mac-osx/