Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 81

I am currently new to robot framework.I am currently using latest window version of chrome and chromedriver which is 80 but when i try to run the test it gives the message "SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 81" in pycharm but currently beta version of 81 is only available. I have tried uninstalling everthing and reinstalling it again but nothing works can anyone help me with this.Thank you!

Screenshots below: 1

2

like image 600
finlandlearner Avatar asked Oct 14 '22 00:10

finlandlearner


People also ask

How do I resolve session is not created this version of ChromeDriver only supports Chrome version 92?

Solution 1: Use same ChromeDriver and Chrome Browser Version You need to Use the same ChromeDriver and Chrome Browser Version This Error Only Occurs Cause Of Dirrenece between Your Chrome and Your WebDriver Version Mismatch. Please Make Sure Your ChromeDriver is up to date with ChromeDriver v102 in this version.

Does ChromeDriver need to match Chrome version?

ChromeDriver is only compatible with Chrome version 12.0. 712.0 or newer. If you need to test an older version of Chrome, use Selenium RC and a Selenium-backed WebDriver instance.

How do I find my current ChromeDriver version?

In addition, the version of ChromeDriver for the current stable release of Chrome can be found at https://chromedriver.storage.googleapis.com/LATEST_RELEASE.


Video Answer


2 Answers

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 webdriver
from webdriver_manager.chrome import ChromeDriverManager

driver = webdriver.Chrome(ChromeDriverManager().install())

This answer is taken from https://stackoverflow.com/a/52878725/10741023

like image 238
dylanvanw Avatar answered Oct 16 '22 14:10

dylanvanw


Do below steps :

  1. Check the version of chrome browser.

  2. download chromedriver of same version from https://sites.google.com/chromium.org/driver/home

  3. Give correct path in the pycharm and run the code.

like image 45
danny_hunt Avatar answered Oct 16 '22 14:10

danny_hunt