I am using selenium with python and have downloaded the chromedriver for my windows computer from this site: http://chromedriver.storage.googleapis.com/index.html?path=2.15/
Before you add the chromedriver to your path, make sure it's the same version as your browser.
If not, you will need to match versions: either update/downgrade you chrome, and upgrade/downgrade your webdriver.
I recommend updating your chrome version as much as possible, and the matching the webdriver.
To update chrome:
help
-> About Google Chrome
Then download the compatible version from here: http://chromedriver.chromium.org/downloads .
Note: The newest chromedriver doesn't always match the newest version of chrome!
Now you can add it to the PATH:
create a new folder somewhere in your computer, where you will place your web drivers.
I created a folder named webdrivers
in C:\Program Files
copy the folder path. In my case it was C:\Program Files\webdrivers
right click on this PC
-> properties
:
Advanced System settings
Environment Variables
System variables
, click on path
and click edit
new
Thats it! I used pycharm and I had to reopen it. Maybe its the same with other IDEs or terminals.