SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 81
I solved these kinds of problems using the webdrive manager.
You can automatically use the correct chromedriver by using the webdrive-manager.Install the webdrive-manager:
pip install webdriver-manager
Then use the driver in python as follows
from selenium import webdriverfrom webdriver_manager.chrome import ChromeDriverManagerdriver = webdriver.Chrome(ChromeDriverManager().install())
This answer is taken from https://stackoverflow.com/a/52878725/10741023
Do below steps :
Check the version of chrome browser.
download chromedriver of same version from https://sites.google.com/chromium.org/driver/home
Give correct path in the pycharm and run the code.
I got the same message on MacOS:
"selenium.common.exceptions.SessionNotCreatedException: Message:session not created: This version of ChromeDriver only supports Chromeversion 81"
Then I run this command, it's gone:
# Homebrew 3brew upgrade chromedriver# Homebrew < 3brew cask upgrade chromedriver