Set CHROMEDRIVER_VERSION on shell start

normal shells (bash, zsh) Append this to your usual config file (.bashrc, .zshrc) export CHROMEDRIVER_VERSION=`(chromedriver --version | sed -E -n 's/^.* (([0-9]+\.){3}[0-9]+).*$/\1/p')` fish shell Append this to ~/.config/fish/config.fish set -gx CHROMEDRIVER_VERSION (chromedriver --version | sed -E -n 's/^.* (([0-9]+\.){3}[0-9]+).*$/\1/p') ...
Read post