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``` 
3
  • 1
    stackoverflow.com/a/55201365/2864740 Commented Jun 20, 2020 at 22:30
  • 2
    Does this discussion help you? Commented Jun 20, 2020 at 22:30
  • 1
    Yes! How would I change the user agent tho using this. This was my solution before but without this u get the version error. Commented Jun 20, 2020 at 22:51

3 Answers 3

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

Sign up to request clarification or add additional context in comments.

1 Comment

keep update chrome driver version based of chrome browser version
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

Comments

0

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.