

You should now be able to run from selenium import webdriverĪlternatively, you can use webdriver_manager that contains most web drivers.įirst install it with pip: pip install webdriver_managerĪnd for Chrome in particular, you should do from webdriver_manager.chrome import ChromeDriverManagerīrowser = webdriver.Chrome(ChromeDriverManager(). usr/local/bin) unzip chromedriver_mac64.zip Step 2: Add chromedriver to your PATH (e.g. Step 1: Download chromedriver # You can find more recent/old versions at The first option is to manually download chromedriver and add it your PATH:

See the code snippets for setting either up here. Setting up the Selenium library for your favourite programming language. You can install both packed (.crx file) and unpacked (directory) extensions via ChromeDriver. If you have a reference to the driver in the PATH variable, you can omit the configuration line. You should then read Getting started with ChromeDriver on Desktop, in particular the sample code which shows how you map the path to the executable and instantiate ChromeDriver. Source: install and set path to chromedriver on mac or linux

$ echo "export PATH=$PATH:$HOME/bin" > $HOME/.bash_profile This can be installed via Homebrew with brew install chromedriver, or manually by downloading, extracting, moving and setting the PATH as follows: $ cd $HOME/Downloads If you want to use Selenium WebDriver with Chrome, first download ChromeDriver - WebDriver for Chrome.
