Selenium chromedriver errors in Mac

When you are using Python selenium you need to set the web driver. To use Google Chrome, you need to download the chromedriver from here:

Make sure to use the version matches your Chrome version in the Mac.

The following menu option shows the version:

Chrome > About Google Chrome

If your chromedriver version does not match the Google Chrome version, you will get the following error:

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

Mac also complains that the software is not verified and not allow to run from Python. You may get the following error message:

selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service chromedriver

You can execute the following command from where you have the chromedriver binary to solve this problem:

xattr -d chromedriver

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store