System Prerequisite: Installing Google Chrome, ChromeDriver
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
Depending on your Linux distribution, use `dpkg` (for Debian/Ubuntu) or `rpm` (for Fedora/Red Hat), run the commands below:
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
Visit the ChromeDriver download page and download the version that matches your Chrome version. For more information visit the official ChromeDriver page.
Extract the downloaded ZIP file
Navigate into the unzipped directory:
Move chromedriver binary file to /usr/bin:
After moving chromedriver to /usr/local/bin and setting the permissions, you can verify the installation by running:
This should display the version of chromedriver installed, confirming that it is correctly placed in your system's PATH and ready to be used.