-
Downloading Google Chrome
Use wget to download the latest Google Chrome .deb package :
sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -
Installing Google Chrome
Installing packages on Ubuntu requires administrative privileges. Running the following command as a user with sudo privileges to install Chrome .deb package on your system:
sudo apt install ./google-chrome-stable_current_amd64.debWhen prompted, enter your user password, and the installation will start. At this point, you have Chrome installed on your Ubuntu system.
-
Verify installation by checking chrome version
google-chrome --versionNote the version.
- Move your ass to this url - https://chromedriver.chromium.org/downloads
- Open the link which has same version of of chrome version
- Now copy the link of
chromedriver_linux64.zipfrom the page - Download it:
sudo wget https://chromedriver.storage.googleapis.com/104.0.5112.79/chromedriver_linux64.zip - Unzip zip file (Install
unzipif not installed already -sudo apt install unzip)sudo unzip chromedriver_linux64.zip - Now execute below commands to configure ChromeDriver on your system.
sudo mv chromedriver /opt/chromedriver sudo chown root:root /opt/chromedriver sudo chmod +x /opt/chromedriver
Change the executable_path value to /opt/chromedriver of your selenium driver object.
driver = Chrome(executable_path='/opt/chromedriver')