Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UC Mode issues with chromedriver 130 / Chrome 130 #3205

Closed
Magic4k opened this issue Oct 19, 2024 · 19 comments
Closed

UC Mode issues with chromedriver 130 / Chrome 130 #3205

Magic4k opened this issue Oct 19, 2024 · 19 comments
Labels
feature or fix already exists Upgrade to the latest version as needed UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode workaround exists You can reach your destination if you do this...

Comments

@Magic4k
Copy link

Magic4k commented Oct 19, 2024

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

@thomvas
Copy link

thomvas commented Oct 19, 2024

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

@Magic4k
Copy link
Author

Magic4k commented Oct 19, 2024

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

@thomvas
Copy link

thomvas commented Oct 19, 2024

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

@mdmintz
Copy link
Member

mdmintz commented Oct 19, 2024

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 mdmintz changed the title UC Mode become not working after webdriver update of version 130.0.6723.59 UC Mode issues with chromedriver 130 Oct 19, 2024
@mdmintz mdmintz added workaround exists You can reach your destination if you do this... UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode labels Oct 19, 2024
@Magic4k
Copy link
Author

Magic4k commented Oct 19, 2024

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

@Zezima126
Copy link

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.

@mdmintz
Copy link
Member

mdmintz commented Oct 21, 2024

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 mdmintz changed the title UC Mode issues with chromedriver 130 UC Mode issues with chromedriver 130 / Chrome 130 Oct 22, 2024
@JasonCrowe
Copy link

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.

@mdmintz
Copy link
Member

mdmintz commented Oct 23, 2024

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.

@JasonCrowe
Copy link

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?

@mdmintz
Copy link
Member

mdmintz commented Oct 23, 2024

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.

@JasonCrowe
Copy link

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

@mdmintz
Copy link
Member

mdmintz commented Oct 23, 2024

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.

@JasonCrowe
Copy link

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

@Mersh-NI
Copy link

Mersh-NI commented Oct 23, 2024

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

@kvvvotheOnnen
Copy link

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

<script src="audio.js"></script> i'm using the latest chrome version 130

@mdmintz
Copy link
Member

mdmintz commented Oct 23, 2024

@mdmintz mdmintz closed this as completed Oct 23, 2024
@mdmintz mdmintz added the feature or fix already exists Upgrade to the latest version as needed label Oct 29, 2024
@mdmintz
Copy link
Member

mdmintz commented Oct 29, 2024

Upgrade to 4.32.5 (or newer if available). Details: #3236

@NicoNicoNico123
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature or fix already exists Upgrade to the latest version as needed UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode workaround exists You can reach your destination if you do this...
Projects
None yet
Development

No branches or pull requests

8 participants