MEHMET BALIOGLU

This version of ChromeDriver only supports Chrome version XX Error

This version of ChromeDriver only supports Chrome version

Selenium is a super useful Python library for scraping webpages. You can use it to automatically open a Chrome browser and mimic human interactions. However, you need to make sure that versions of your chromedriver and the Chrome browser installed on your computer should match. Otherwise, you’ll get the following error:

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version

If your browser version is greater than the chromedriver, you just need to update your chromedriver to the equivalent version. In order to do this, open Mac terminal and type:

brew cask install chromedriver

You may get an error like this:

Error: It seems there is already a Binary at '/usr/local/bin/chromedriver'; not linking.

In order to overcome this error, try reinstalling chromedriver:

brew cask reinstall chromedriver

If same error persists, remove the existing chromedriver:

rm /usr/local/bin/chromedriver

And then you can proceed with a clean install:

brew cask install chromedriver

Note:

If you get “chromedriver” cannot be opened because the developer cannot be verified” error, simply open the System Preferences > Security & Privacy tab in your Mac and allow the chromedriver to installed by clicking the “Open Anyway” button at the bottom of the tab.

UPDATE:

Error: Unknown command: cask

If you get Error: Unknown command: cask, try an alternative approach , which may be simpler:

brew reinstall chromedriver

You’ll probably get:

Error: “chromedriver” cannot be opened because the developer cannot be verified.

To solve this: Press ⇧ + ⌘ + G to go the relevant folder. It should be similar to :

/usr/local/bin/chromedriver

Double click on the chromewdriver. You’ll see this popup:

Press open. You’re done. now you can use newest chromedriver without getting the this version of ChromeDriver only supports Chrome version XX error.