Skip to content

Setting Up ChromeDriver

tibobrc edited this page Apr 11, 2021 · 2 revisions

Setting Up ChromeDriver

ChromeDriver is a separate executable that Selenium WebDriver uses to control Chrome.

As our Blinkist2Readwise script relies on a Chrome Selenium WebDriver to access your Blinkist highlights, you need to download the ChromeDriver corresponding to your installed version of Chrome, and put it in a folder that is on your system’s PATH.

Step 1: Install Chrome

If you don't already have Chromed installed on your machine, head to the Google Chrome website and download Chrome.
Run the downloaded file to install Chrome on your machine.

Step 2: Check your version of Chrome

Launch a Chrome window, and go to the menu Chrome (at the top of the window) and click on About Google Chrome.
About Google Chrome

This will open a new page in which you will be able to see your installed version of Chrome.
Chrome Version

Note this version for the next step.

Step 3: Download ChromeDriver

Head to this page and download the ChromeDriver version corresponding to your Chrome version.
For example, if your Chrome version is 89.X, then download the ChromeDriver version 89.X.

Unzip the downloaded file, and you should see a chromedriver executable file.
Unzip ChromeDriver

Final Step: Add ChromeDriver to your system PATH

This step will depend on your operating system.

On Mac

The easiest way to add ChromeDriver to your system PATH on Mac is to move the chromedriver executable file to the folder /usr/local/bin.

Once you have moved it there, and to avoid getting a future error " "chromedriver" cannot be opened because the developer cannot be verified" " when trying to execute chromedriver, run the following command from a terminal window:

xattr -d com.apple.quarantine /usr/local/bin/chromedriver

On Windows

The easiest way to add ChromeDriver to your system PATH on Windows is to move the chromedriver executable file to the folder C:\Windows.

On Linux

The easiest way to add ChromeDriver to your system PATH on Linux is to move the chromedriver executable file to the folder ~/bin/, and then run the following command:

echo "export PATH=$PATH:$HOME/bin" >> $HOME/.bash_profile

To make sure the chromedriver can be executed, run the following command:

sudo chmod +x ~/bin/chromedriver