Fix: This version of ChromeDriver only supports Chrome version 103

If you’re like me and trying to set up a scraping project and leveraging Selenium you may have run into the path requirement that I found to be puzzling. Luckily chromedriver-py solves that for you. However, upon install, I found that it wasn’t accepting the version of Chrome that I had installed (apparently the latest release only supports the beta version of Chrome).

My error message:

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

Current browser version is 102.0.5005.115 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

After installing Chrome’s beta version and being unsuccessful there I figured out that earlier versions of chromedriver-py support earlier versions of the browser.

I was able to install a specific version of chromedriver-py via pip using this command (which is also helpfully included on the version pages on pypi.org):

python -m pip install chromedriver-py==102.0.5005.61

https://pypi.org/project/chromedriver-py/102.0.5005.61/

Remember to uninstall the version that isn’t working for you first.

Happy scraping!

Leave a Reply

Your email address will not be published. Required fields are marked *