Basic wrapper for Chromedriver for MacOS and Linux
This wrapper will determine the correct version of Chromedriver for the installed version of Google Chrome. If the required version of chromedriver is not found, then it will be fetched and cached for future uses.
This package requires python3. Dependencies can be installed using:
pip install -r requirements.txtAfter installing dependencies, ensure that the bin directory is in your $PATH.
Bash:
if [ -d "/home/example/git/chromedriver-wrapper/bin" ]; then
export PATH="/home/example/git/chromedriver-wrapper/bin:$PATH"
fizsh:
if [ -d "/home/example/git/chromedriver-wrapper/bin" ]; then
path="/home/example/git/chromedriver-wrapper/bin $path"
export PATH
fiJust ensure that the bin directory is in your $PATH
You can test it's working correctly by running chromedriver
You can specify a couple of options here to the chromedriver wrapper. These can be specified in the .env file.
EXTRA_OPTIONS="--verbose --log-path=/tmp/chromedriver.log"
PATH_TO_CACHEDIR="/tmp/mycache"
PATH_TO_CHROME="/my/path/to/chrome/canary"