Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undetected Chromedriver not using most recent chromedriver for my browser

I am having some issue getting my undetected_chromedriver to be on version Chromium: 116.0.5845.96. This issue just started today I have tried nearly everything I can think of, from reinstalling the module, to reinstalling the browsers, and even tested with the version_main=116 paramater which should have fixed it, but it seems that version_main only goes to 114.

Here's my code.

import undetected_chromedriver as uc

driver = uc.Chrome()
driver.get('https://www.example.com')

This is being launched on Chrome Version : Version 116.0.5845.97 (Official Build) (64-bit), returns this error in the console. from session not created: This version of ChromeDriver only supports Chrome version 114 Current browser version is 116.0.5845.97

like image 810
Vin Avatar asked Oct 26 '25 09:10

Vin


1 Answers

There's an open ticket on it here: https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/1477


Until the fix is available, you can use SeleniumBase's UC Mode as an alternative, which has a slightly modified version of undetected-chromedriver.

First pip install seleniumbase, and then run the following script with python:

from seleniumbase import Driver
import time

driver = Driver(uc=True)
driver.get("https://nowsecure.nl/#relax")
time.sleep(6)
driver.quit()

SeleniumBase also has other formats with its own API:

from seleniumbase import SB

with SB(uc=True) as sb:
    sb.open("https://nowsecure.nl/#relax")
    sb.sleep(3)
    if not sb.is_text_visible("OH YEAH, you passed!", "h1"):
        sb.get_new_driver(undetectable=True)
        sb.open("https://nowsecure.nl/#relax")
        sb.sleep(3)
    sb.assert_text("OH YEAH, you passed!", "h1", timeout=3)
like image 108
Michael Mintz Avatar answered Oct 28 '25 22:10

Michael Mintz



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!