Reputation: 1155
I am using Selenium for the first time. I came across this issue after I ran my first test. It's basically telling me that my chromedriver executable does not exist in my current directory. What do I need to do? Below are the steps I took to install it, atleast that is what I thought.
I installed it through Package Manager Console and then I verified the installation:
And I also did put the Selenium WebDriver executable in the location where the Google Chrome browser is present. This is not my projects directory.
This is the directory for my project and the executable is inside my bin.
Upvotes: 0
Views: 4996
Reputation: 1691
I use below method to solve the same problem.
IWebDriver driver = new ChromeDriver("C:\\Temp2");
you need to download ChromeDriver.exe from Google site then put in on some folder of your PC.
I did not have chances to test standard share drive or environment variable path , but i will assume it will work as well when you instruct the code point to the right path as above.
Upvotes: 2