Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The chromedriver version cannot be discovered selenium python

I was using the following code in selenium Python:

options = webdriver.ChromeOptions()
options.add_argument('--start-maximized')
options.add_experimental_option('excludeSwitches', ['enable-logging'])
driver = webdriver.Chrome(service=Service(), options=options)

Everything was running fine but Suddenly I see the following error after upgrading google chrome.

The chromedriver version cannot be discovered

enter image description here

I am using selenium 4.14.0 version.

How do i solve this problem?

like image 748
JamesHorab Avatar asked Mar 02 '26 08:03

JamesHorab


1 Answers

It's probably because you are using an old version of selenium. So you may need to upgrade your selenium package for this to work:

pip install --upgrade selenium

I upgraded to selenium 4.11.2 which worked for me.

like image 132
abdou_dev Avatar answered Mar 04 '26 21:03

abdou_dev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!