Installing chromedriver for Selenium WebDriver testing

For Mac:

Using homebrew:

brew install --cask chromedriver
chromedriver --version

Using manual steps:

Add the following lines to ~./bash_profile or ~/.zprofile using vi or nano or any text editor

# Installing Chrome Driver
export CHROME_DRIVER_HOME=/downloaded_and_extracted_location/chrome_driver_2.33
export PATH=$CHROME_DRIVER_HOME:$PATH

Verify the installation by executing the following command in Terminal
chromedriver --version

For Windows:

Add c:\downloaded_and_extracted_location\chrome_driver_2.33\chromedriver to PATH environment variable (most probably through My Computer).

Verify the installation by executing the following command in Command Prompt
chromedriver --version

For Ubuntu (Linux):

sudo apt-get install chromium-browser
sudo apt-get install chromium-chromedriver
sudo ln -s /usr/lib/chromium-browser/chromedriver /usr/local/bin/chromedriver
chromium-browser --version
chromedriver --version

For Debian (Linux):

sudo apt-get install chromium
sudo apt-get install chromedriver
chromium --version
chromedriver --version

Comments

Popular posts from this blog

JSON with curl and jq

Import self signed in Linux for Chrome / Chromium headless testing

Colima - Drop In replacement for Docker Desktop for Mac and Linux