Unable to find the chromedriver executable. Please download the server from http://code.google.com/p/chromedriver/downloads/list and place it somewhere on your PATH. More info at http://code.google.com/p/selenium/wiki/ChromeDriver. (Selenium::WebDriver::Error::WebDriverError)
On Ubuntu 13 with Watir and Ruby.
To solve the Selenium error "WebDriverException: Message: 'chromedriver' executable needs to be in PATH", install and import the webdriver-manager module by running pip install webdriver-manager . The module simplifies management of binary drivers for different browsers.
You can download the chromedriver.exe from this link: https://sites.google.com/a/chromium.org/chromedriver/downloads. You will also find links to previous versions of cromedriver.
Below are the steps to follow while configuring the chrome setup for Selenium. #1) Check the version of the chrome. #3) Download the chromedriver.exe file for the respective OS and copy that .exe file into your local. #4) The path of the chromedriver (C:\webdriver\chromedriver.exe) will be used in our program.
For other people on MacOS:
brew cask install chromedriver
And you'll be good to go.
If using Homebrew 2.6.0 (released in 2020.12.01) or above, you should use:
brew install --cask chromedriver
Please download the server from http://code.google.com/p/chromedriver/downloads/list and place it somewhere on your PATH. More info at https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver.
UPD: Link that is not broken: https://sites.google.com/a/chromium.org/chromedriver/downloads
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With