The chromedriver Utility
The chromedriver
utility 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 chromedriver
, if necessary (on Mac or Windows), or on Mac, can do this via homebrew
and brew cask
:
# 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 settings to "Allow Anyway", and afterwards it should work.
Last updated
Was this helpful?