csb00
csb00

Reputation: 1155

The chromedriver.exe file does not exist in the current directory

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.

enter image description here

I installed it through Package Manager Console and then I verified the installation:

enter image description here

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. enter image description here

This is the directory for my project and the executable is inside my bin. enter image description here

Upvotes: 0

Views: 4996

Answers (1)

HO LI Pin
HO LI Pin

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

Related Questions