WebDriver Installation

Installing webdrivers

To run web automation, you'll need webdrivers for each browser you plan on using. Here are some commands that'll automatically download the driver you need into the SeleniumBase drivers folder once you've installed SeleniumBase:

seleniumbase install chromedriver
seleniumbase install geckodriver
seleniumbase install edgedriver
seleniumbase install iedriver
seleniumbase install operadriver
  • If you have the latest version of Chrome installed, get the latest chromedriver (otherwise it defaults to chromedriver 2.44 for compatibility reasons):
seleniumbase install chromedriver latest
  • You can also install a specific version of chromedriver for a specific version of Chrome:
seleniumbase install chromedriver 83.0.4103.39

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 macOS 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:

macOS shortcuts:

brew cask install chromedriver

brew install geckodriver

You can also upgrade existing webdrivers:

brew cask upgrade chromedriver

brew upgrade geckodriver

Linux shortcuts:

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

wget http://chromedriver.storage.googleapis.com/2.44/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
mv chromedriver /usr/local/bin/
chmod +x /usr/local/bin/chromedriver
wget https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz
tar xvfz geckodriver-v0.26.0-linux64.tar.gz
mv geckodriver /usr/local/bin/
chmod +x /usr/local/bin/geckodriver