System Prerequisite: Installing Google Chrome, ChromeDriver

Install Google Chrome

Visit Google Chrome’s official website and download the appropriate version for your Linux distribution.

If you've installed Chrome already, determine the version of your current Chrome browser directly from the UI. For this, Open Google Chrome, click on the three vertical dots on the top right -> Help -> About Google Chrome. Note down the version number.

Alternatively, run the command below in the terminal window

  1. google-chrome --version


Install the Chrome package

Depending on your Linux distribution, use `dpkg` (for Debian/Ubuntu) or `rpm` (for Fedora/Red Hat), run the commands below:

  1. sudo dpkg -i google-chrome-stable_current_amd64.deb # For Debian/Ubuntu


  1. sudo rpm -i google-chrome-stable_current_x86_64.rpm # For Fedora/Red Hat sudo yum


  1.  install ./google-chrome-stable_current_x86_64.rpm # Alternative


Install ChromeDriver

1. Determine your current Chrome version:

Open Google Chrome, click on the three vertical dots on the top right -> Help -> About Google Chrome. Note down the version number.

Alternatively, run the command below in the terminal window

  1. google-chrome --version


2. Download the appropriate ChromeDriver:

Visit the ChromeDriver download page and download the version that matches your Chrome version. For more information visit the official ChromeDriver page.

3. Extract and move ChromeDriver:

Extract the downloaded ZIP file

  1. unzip chromedriver_linux64.zip


Navigate into the unzipped directory:

  1. cd chromedriver_linux64


Move chromedriver binary file to /usr/bin:

  1. sudo cp chromedriver  /usr/bin/chromedriver


Verify the installation

After moving chromedriver to /usr/local/bin and setting the permissions, you can verify the installation by running:

  1. chromedriver --version


This should display the version of chromedriver installed, confirming that it is correctly placed in your system's PATH and ready to be used.