0

I am getting an error when opening up chrome with Selenium, it opens up and closes the window right after opening. Here is my code:

import requests
import json
from selenium import webdriver
driver = webdriver.Chrome(executable_path=r'C:\Users\Salvatore\Desktop\Desktop\webdrivers\chromedriver.exe')```

This is the error:
```selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 81```
Salvatore Timpani
  • 407
  • 3
  • 6
  • 26

3 Answers3

1

Please check which chrome browser you are using , you should use chrome driver exe according chrome browser version ( Error seems like you are using chrome driver version of 81 but your chrome browser version no more than 81 like 83,84)

https://chromedriver.chromium.org you can download latest chrome driver version here

Justin Lambert
  • 940
  • 1
  • 7
  • 13
0

You can check your current chrome version by going Chrome -> Options -> About Chrome and then you will know what version of the chromedriver.exe you need to download

0

Your ChromeDriver version is required to be based on the Chrome browser version

Udhav Sarvaiya
  • 9,380
  • 13
  • 53
  • 64