https://googlechromelabs.github.io/chrome-for-testing/#stable
-
Download the Correct ChromeDriver Version
- Go to the ChromeDriver Downloads page.
- Download the version of ChromeDriver that matches the version of your Chrome browser. You can find your browser version by navigating to
chrome://settings/help
in Chrome. - Update the
CHROMEDRIVER_PATH
-
Update the
CHROMEDRIVER_PATH
variable in the script to the correct path where the ChromeDriver executable is located on your machine. For example:CHROMEDRIVER_PATH = '/Users/your_username/Downloads/chromedriver'
-
Add ChromeDriver to
PATH
(Optional)- You can add the ChromeDriver executable to your system's
PATH
environment variable. If you do this, you can leaveCHROMEDRIVER_PATH
blank:driver = webdriver.Chrome(options=options)
- You can add the ChromeDriver executable to your system's
-
Double Check
python3 -m pip install --upgrade selenium chmod +x /path/to/chromedriver