If you’re using Google Chrome on your Ubuntu desktop, you need to install Chromedriver in order to run Selenium tests. Here’s how to do it.
First, download the latest version of Chromedriver from the Google ChromeDriver downloads page.
Make sure you select the correct version for your operating system and architecture (32- or 64-bit).
Once the download is complete, unzip the file and move it to the /usr/local/bin directory:
sudo unzip chromedriver_linux64.zip -d /usr/local/bin/
You may need to give the file executable permissions:
If you’re using Google Chrome on your Ubuntu system, then you might be wondering where the Chromedriver program is installed. By default, it should be located in the /usr/local/bin directory. However, if you’ve installed Chrome from a different repository or PPA, then the location might be different.
You can use the “which” command to find out where Chromedriver is installed on your system.
Selenium Python – Install Selenium, Chromedriver, Chrome on Ubuntu, Debian, Python – Part 1b
Where is Chromedriver Located Ubuntu?
Chromedriver is located in the /usr/lib/chromium-browser/ directory on Ubuntu systems.
Where Does Chromedriver Install on Linux?
Chromedriver is a standalone server that implements the W3C WebDriver standard. It is written in C++ and released under the Apache License 2.0.
It installs on Linux systems using the following steps:
1) Download the latest chromedriver binary from here: https://chromedriver.storage.googleapis.com/index.html?path=2.41/
2) Unzip the file and move it to /usr/local/bin/chromedriver
3) Add execution permissions to the file: chmod +x /usr/local/bin/chromedriver
How Do I Know If Chromedriver is Installed on Ubuntu?
Assuming you already have Google Chrome installed on your Ubuntu system, here are the steps to check if Chromedriver is also installed. If not, we will install it.
First, open a terminal window and type:
which chromedriver
If this command returns a path, then Chromedriver is already installed. For example: /usr/bin/chromedriver
If the command does not return a path, then type the following to install Chromedriver:
Where Does Chromedriver Get Installed?
Chromedriver is a webdriver used by Google Chrome. It gets installed automatically when you install Google Chrome. The path to the Chromedriver folder is usually something like this:
Install Chromedriver Ubuntu Command Line
If you’re using Google Chrome as your default browser on Ubuntu, you’ll need to install Chromedriver in order to run Selenium tests. Here’s how to do it:
1. Download the latest version of Chromedriver from here: http://chromedriver.storage.googleapis.com/index.html?
path=2.19/
2. Unzip the file and move it to /usr/local/bin:
sudo unzip chromedriver_linux64.zip -d /usr/local/bin
3. Make sure it’s executable:
sudo chmod +x /usr/local/bin/chromedriver
That’s it!
Conclusion
Chromedriver is a webdriver that allows you to control Google Chrome from your code. It is installed in the following location on Ubuntu: /usr/lib/chromium-browser/chromedriver.