Recently I have faced some problems with Firefox driver while I was using Selenium Webdriver(Python). I did not have much time to investigate the issue with Firefox driver, therefore, I switched to Chromedriver. However, I needed to install Chrome driver separately in Linux mint. I hope the procedure will also work for other Linux distro as well.

Here goes the simple instructions for installing Chrome Driver:

1. Install unzip:

sudo apt-get install unzip

2. Download latest version from official website and upzip it (here for instance, to ~/Downloads. Example: For Robert’s system the location might be ‘/home/robert/Downloads’.):

wget -N http://chromedriver.storage.googleapis.com/2.9/chromedriver_linux64.zip -P ~/Downloads
 unzip ~/Downloads/chromedriver_linux64.zip -d ~/Downloads

3. Make it executable and move to /usr/local/share

chmod +x ~/Downloads/chromedriver
 sudo mv -f ~/Downloads/chromedriver /usr/local/share/chromedriver

4. Create symbolic links

sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver

It’s Done!

Please Note: To use latest Firefox driver you need to download Mozilla GeckoDriver from the http://www.seleniumhq.org/download/ page and follow the Step 3 from the above. It should fix the Firefox driver issue.

Another Note: All the drivers often update very frequently. Therefore, if any of the driver (Chrome, Firefox or any other) suddenly stop working then find and download the latest version of that driver and follow step 3 and 4 which most probably fix the issue.

Good Luck!!

Advertisements