SeleniumBase icon indicating copy to clipboard operation
SeleniumBase copied to clipboard

UC Mode issues with chromedriver 130

Open Magic4k opened this issue 1 year ago • 5 comments

everything was fine and working good after the chrome driver update the uc mode makes driver don't recognize any element of web page instead when removing uc=True it works fine and detects all elements on the page so it means the driver update made something like conflict please help

Magic4k avatar Oct 19 '24 14:10 Magic4k

Hi, are you on MacOS? I have similar problem on MacOS, here i opened a ticket

thomvas avatar Oct 19 '24 14:10 thomvas

Hi, are you on MacOS? I have similar problem on MacOS, here i opened a ticket

no I'm windows OS but I think the solution is to back 2 old versions of chrome driver and chrome browser so that uc mode works fine

Magic4k avatar Oct 19 '24 16:10 Magic4k

Hi, are you on MacOS? I have similar problem on MacOS, here i opened a ticket

no I'm windows OS but I think the solution is to back 2 old versions of chrome driver and chrome browser so that uc mode works fine

i updated my chrome on windows an i have the same problem also on windows

Where can i download older chrome version? Thanks

thomvas avatar Oct 19 '24 16:10 thomvas

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.

mdmintz avatar Oct 19 '24 17:10 mdmintz

yes It worked now thank you mintz you are a gem anyway I appreciate your work so much ♥

Magic4k avatar Oct 19 '24 19:10 Magic4k

it seems to open two windows after driver.get(url). This is breaking the code for some websites. What worked for me is closing the second window

handles = driver.window_handles
if len(driver.window_handles) != 1:
        for handle in handles[1:]:
            driver.switch_to.window(window_name=handle)
            driver.close()

Not a very elegant workaround , but maybe helpful if driver_version="129" isnt doing the trick.

vanderblij avatar Oct 21 '24 17:10 vanderblij

I'm not sure what percent of people are seeing this, so I created a poll in Discord. If that link didn't work, here's the link to join the SeleniumBase Discord first: https://discord.gg/EdhQTn3EyE

mdmintz avatar Oct 21 '24 18:10 mdmintz

I am experiencing an issue that I think is related. I have a script that uses the Nopecha extension to autosolve reCaptcha.

Part of my script will change to the captcha iframe and check that it's been solved.

The script occasionally opens the same content in a new tab. The only problem with this is that the original tab will keep auto-solving the captcha after the solution resets, using up my credits.

JasonCrowe avatar Oct 23 '24 01:10 JasonCrowe

The issue is related to the new structure of the user-data-dir in Chrome 130. If stopping the WebDriver service on a newly-created user-data-dir, then there could be intermittent problems when starting the WebDriver service back up. When this issue occurs, WebDriver incorrectly believes that the URL of the page is a Chrome extension (because the URL starts with chrome-extension://, which happens because the built-in Chrome extensions are one of the first items to appear in newly-created user-data-dirs). The fix is to create the user-data-dir in advance, and then tell the UC Mode browser to use that at start-up.

mdmintz avatar Oct 23 '24 01:10 mdmintz

I tried that, and it caused problems. The browser would open, and then nothing else happens.

When you say to create the user-dir in advance, do you mean create the folder, or to use another script that will create the user-dir, then have my script use this dir?

JasonCrowe avatar Oct 23 '24 03:10 JasonCrowe

I tried that, and it caused problems. The browser would open, and then nothing else happens.

When you say to create the user-dir in advance, do you mean create the folder, or to use another script that will create the user-dir, then have my script use this dir?

@JasonCrowe The entire folder structure with data files must be there in advance. (Starting in Chrome 130) That means another script must run in advance.

mdmintz avatar Oct 23 '24 04:10 mdmintz

I tried using a profile folder created a few weeks ago, but it didn't work. Is there anything else I can try?

JasonCrowe avatar Oct 23 '24 04:10 JasonCrowe

I tried using a profile folder created a few weeks ago, but it didn't work. Is there anything else I can try?

Wait for the next SeleniumBase release. Coming soon.

mdmintz avatar Oct 23 '24 04:10 mdmintz

Okay, thanks. I appreciate you and all the work you have put into this project.

JasonCrowe avatar Oct 23 '24 05:10 JasonCrowe

Tell me why some pages are being replaced with chrome-extension://neajdppkdcdipfabeoofebfddakdcjhd/audio.html in SB UC mode

This happens after upgrading to Chrome 130

The problem is described in more detail here

Mersh-NI avatar Oct 23 '24 08:10 Mersh-NI

in some pages im gettin this response with the self.get_page_source()

i'm using the latest chrome version 130

kvvvotheOnnen avatar Oct 23 '24 15:10 kvvvotheOnnen

Fixed in 4.32.0 - https://github.com/seleniumbase/SeleniumBase/releases/tag/v4.32.0

mdmintz avatar Oct 23 '24 21:10 mdmintz

Upgrade to 4.32.5 (or newer if available). Details: https://github.com/seleniumbase/SeleniumBase/issues/3236

mdmintz avatar Oct 29 '24 14:10 mdmintz

Tell me why some pages are being replaced with chrome-extension://neajdppkdcdipfabeoofebfddakdcjhd/audio.html in SB UC mode

This happens after upgrading to Chrome 130

The problem is described in more detail here

me too, but it seem fix issue

NicoNicoNico123 avatar Nov 07 '24 05:11 NicoNicoNico123