Search code examples
python-3.xselenium-webdriverselenium-chromedriver

Troubleshooting Selenium Error After Upgrading to Chrome 116: Seeking Resolution


I'm encountering an error while executing Python code with Selenium. The problem appears to be related to the version of Chrome I'm using. I've upgraded Chrome from version 114 to the latest stable version, 116. I've also updated the ChromeDriver to the most recent version. Despite these updates, the issue remains unresolved. I would greatly appreciate assistance in diagnosing and resolving this problem.

SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 116.0.5845.110 with binary path /usr/bin/google-chrome
Stacktrace:
#0 0x561777b924e3 <unknown>
#1 0x5617778c1c76 <unknown>
#2 0x5617778ef04a <unknown>
#3 0x5617778ea4a1 <unknown>
#4 0x5617778e7029 <unknown>
#5 0x561777925ccc <unknown>
#6 0x56177792547f <unknown>
#7 0x56177791cde3 <unknown>
#8 0x5617778f22dd <unknown>
#9 0x5617778f334e <unknown>
#10 0x561777b523e4 <unknown>
#11 0x561777b563d7 <unknown>
#12 0x561777b60b20 <unknown>
#13 0x561777b57023 <unknown>
#14 0x561777b251aa <unknown>
#15 0x561777b7b6b8 <unknown>
#16 0x561777b7b847 <unknown>
#17 0x561777b8b243 <unknown>
#18 0x7f89faf3f609 start_thread


Solution

  • Unless your requirement is to really test on Google Chrome 114, I would suggest to not downgrade it. You can update the chromedriver version to the one compatible with chrome 116. Chromedriver 116 is available and can be downloaded from this link.

    NB: The issue with version mismatch can be resolved using WebDriverManager (to handle driver and chrome version mismatch). A solution to this problem has been provided in this post. [post]: (SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 81)