Selenium fix: SessionNotCreated 'this version only supports Chrome version' error in Python

preview_player
Показать описание
A tutorial on setting up and automatically upgrading ChromeDriver for Selenium in Python. If you have a webdriver SessionNotCreatedException error like "this version of ChromeDriver only supports Chrome version 96" we'll fix it quick and easy! This solution also works for Firefox, Safari, Edge, etc. If you just want the answer now without an explanation, skip the video and check the rest of the description.

=====

HOW TO INSTALL WEBDRIVER-MANAGER
!pip install webdriver-manager

HOW TO USE WEBDRIVER-MANAGER
from selenium import webdriver
driver = webdriver.Chrome(ChromeDriverManager().install())

=====

LINKS

====

CHAPTERS

00:00 Intro
00:28 SessionNotCreatedException version error
01:13 What are WebDrivers and ChromeDriver?
02:34 Why upgrading Chrome breaks Selenium
03:28 Downloading ChromeDriver? No!
03:59 webdriver-manager for upgrading ChromeDriver
04:58 Installing webdriver-manager
05:51 Using webdriver-manager
07:20 Using webdriver-manager with Firefox, Chromium, Safari
Рекомендации по теме
Комментарии
Автор

You're an amazing teacher man! Struggled to solve this problem for an hour. Saviour!!!

rayees.ahamed
Автор

THank you so much!!! Been sitting here to find out how to install chrome driver from cmd for hours. THanks again

dtaktlq
Автор

Thank you, Jonathan, for a fantastic explanation

abdulrahmanjasim
Автор

Dear Jonathan, Voice voice is so Nice. Your info works for me. Thank you.

Pj-iexz
Автор

Thank you, You are amazing, My issue get solved by using the code.

swapshiv
Автор

Thanks! I was expecting MINIMUM 3 hours to figure out what is wrong and how to fix it

Arc_Viper
Автор

Thanks for the video. I have been searching a lot and finally this helps

sailoben
Автор

Hello sir, I have a question, I'm trying to click on an icheckbox with box of value changing everytime i open the website. How can I do that? Thank you

dtaktlq
Автор

THANK YOU!!! I was wondering what happened. Nobody expect it, that is so vulnerable.

MOTIVATION-pfyj
Автор

great explanation, I was overthinking it... this worked wonders

TechRevivalist
Автор

prefect solution for webdriver for any version new or old it work thank youuuu💙

danshoo
Автор

This is amazing, man! Really thanks for this!! <3

danshoo
Автор

Thank you very this helped me solve the problem.

isidretijerinacomejo
Автор

This is super tight! Thanks for sharing.

JFischbeck
Автор

Hi i am facing the same issue in C# which you have shown for python could you please help me in that

aniruddhanaik
Автор

I have done it, but it still says: "his version of ChromeDriver only supports Chrome version 104 Current browser version is 107.0.5304.88". However, thanks for your information and time.

SVN
Автор

Thanks man...i tried multiple times installing proper driver still it didnt work..but this fix issue forever😀

hemanthraju
Автор

Thanks. So what happens with these downloads? Is the manager removing and replacing? Is the config already with defaults for where to pick up the driver? Seems so.

DM-pypj
Автор

THx...But python little bit warning :::DeprecationWarning: executable_path has been deprecated, please pass in a Service object
browser = webdriver.Chrome(ChromeDriverManager().install(), options=options)

swweetenerr
Автор

This is amazing, man! Really thanks for this!! <3

TheBujinho