-
Notifications
You must be signed in to change notification settings - Fork 4
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.
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.
Launch a Chrome window, and go to the menu Chrome (at the top of the window) and click on About Google Chrome.
This will open a new page in which you will be able to see your installed version of Chrome.
Note this version for the next step.
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.
This step will depend on your operating system.
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
The easiest way to add ChromeDriver to your system PATH on Windows is to move the chromedriver executable file to the folder C:\Windows.
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