seleniumbase / SeleniumBase

📊 Blazing fast Python framework for web crawling, scraping, testing, and reporting. Supports pytest. Stealth abilities: UC Mode and CDP Mode.
https://seleniumbase.io
MIT License
5.44k stars 983 forks source link

Problem with UC Mode (from chromedriver / uc_driver) #3204

Closed thomvas closed 1 month ago

thomvas commented 1 month ago

Hi,

my code is this:

from seleniumbase import Driver

driver = Driver(uc=True, headless2=True)

url = "https://www.amazon.com/"

driver.get(url)

I have SeleniumBase 4.31.6. I use MacOS 15.0 Sequoia with Intel and Chrome 130.0.6723.59.

This code sometimes gives me this error.

2024-10-19_15-02

The error is also on MacOS with Apple Silicon and rosetta installed.

I've found that deleting uc=True solves the problem, so the following code works.

from seleniumbase import Driver

driver = Driver(headless2=True)

url = "https://www.amazon.com/"

driver.get(url)

Could it be a bug? How can I use UC Mode on MacOS without problems?

Thanks :)

**UPDATE:

i updated my chrome on windows and i have same problem also on Windows**

mdmintz commented 1 month ago

Probably a duplicate of https://github.com/seleniumbase/SeleniumBase/issues/3205#issuecomment-2424100386

Try setting driver_version="129"

That workaround should work until a more permanent solution becomes available. I’m figuring out how to properly patch all the driver changes that appeared in 130.

schamen commented 1 month ago

hello win10, python12.7, installed chrome v129 and webdriver v129. trying to start example raw_cf.py but always get Traceback (most recent call last): File "D:\python\SeleniumBase-master\SeleniumBase-master\seleniumbase\core\browser_launcher.py", line 4460, in get_localdriver driver = undetected.Chrome( ^^^^^^^^^^^^^^^^^^ File "D:\python\SeleniumBase-master\SeleniumBase-master\seleniumbase\undetected__init.py", line 311, in init super().init__(options=options, service=service) File "C:\Users\SAM\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 45, in init super().init( File "C:\Users\SAM\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 66, in init super().init(command_executor=executor, options=options) File "C:\Users\SAM\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 212, in init ...

i don't understand what i must to do to resolve such errors. can you help me?