Fetching contributors…
Cannot retrieve contributors at this time
executable file 67 lines (43 sloc) 3.51 KB

Installing Google Chromedriver, Firefox Geckodriver, Microsoft Edge Driver, etc.

To run web automation, you'll need to download a web driver for each browser you plan on using and place those on your System PATH. Additionaly, you can place drivers in the SeleniumBase drivers folder. If you plan on taking the latter option, here are some commands that'll automatically download the driver you need into the drivers folder once you've installed SeleniumBase:

seleniumbase install chromedriver
seleniumbase install geckodriver
seleniumbase install edgedriver
seleniumbase install iedriver
seleniumbase install operadriver

If you plan on using the Selenium Grid integration (which allows for remote webdriver), you'll need to put the drivers on your System PATH. On a Mac and Linux, /usr/local/bin is a good PATH spot. On Windows, you may need to set the System PATH under Environment Variables to include the location where you placed the driver files. As a shortcut, you could place the driver files into your Python Scripts/ folder in the location where you have Python installed, which should already be on your System PATH.

Here's where you can go to manually install web drivers from the source:


brew cask install chromedriver

brew install geckodriver

(NOTE: If your existing version of chromedriver is less than 2.40, upgrading is required in order to keep up with the latest version of Chrome!)

brew cask upgrade chromedriver

brew upgrade geckodriver


If you still need the web drivers, here are some scripts to help you install chromedriver and geckodriver on a Linux machine:

mv chromedriver /usr/local/bin/
chmod +x /usr/local/bin/chromedriver
tar xvfz geckodriver-v0.21.0-linux64.tar.gz
mv geckodriver /usr/local/bin/
chmod +x /usr/local/bin/geckodriver