The chromedriver Utility

The chromedriverarrow-up-rightutility enables automated web browsing via a Chrome-like web browser.

Installation

Detect if chromedriver is already installed, and if so, where:

# is chromedriver installed?
chromedriver --version

# is chromedriver installed (via homebrew)?
/usr/local/bin/chromedriver --version

Install chromedriverarrow-up-right, if necessary (on Mac or Windows), or on Mac, can do this via homebrew and brew caskarrow-up-right:

# install (on Mac OS, via homebrew):
brew cask install chromedriver

# (if you need to upgrade chromedriver):
brew cask upgrade chromedriver

Observe the location where your chromedriver utility has been installed (e.g. "/usr/local/bin/chromedriver").

Usage

Use the selenium package to control the chromedriver from a Python script.

Troubleshooting

If you're using chromedriver on Mac and you see an error like "chromedriver cannot be opened because the developer cannot be verified", you must first adjust your security and privacy settingsarrow-up-right to "Allow Anyway", and afterwards it should work.

Last updated