Skip to content

uc_gui_click_captcha not working #3726

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

Closed
tromotixc opened this issue May 3, 2025 · 3 comments
Closed

uc_gui_click_captcha not working #3726

tromotixc opened this issue May 3, 2025 · 3 comments
Labels
invalid usage You may need to change what you're doing UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode

Comments

@tromotixc
Copy link

Hello,

I use this:

driver = Driver(uc_cdp=True, incognito=True, chromium_arg="--disable-search-engine-choice-screen")
...
driver.uc_gui_click_captcha()

it has cloudflare. the code finds it, get the mark and thick it so it works
but after get back to the same page which means it cannot avoid detection

it worked for months smoothly
on 29th April stops working and I have the same problem every they

do you have any idea?

thank you in advance!

@mdmintz mdmintz added invalid usage You may need to change what you're doing UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode labels May 4, 2025
@mdmintz
Copy link
Member

mdmintz commented May 4, 2025

Make sure you activate CDP Mode for stealth.

With the Driver format, that's:
driver.uc_activate_cdp_mode(url)

See examples/cdp_mode/raw_driver.py for a full example.

@mdmintz mdmintz closed this as completed May 4, 2025
@tromotixc
Copy link
Author

Thank you!

driver.uc_activate_cdp_mode(url)
works. it bypass the cloudflare but after that i can't get the page source.
after I can't use the driver.get(url)

do you have any solution to get the page source with uc_activate_cdp_mode?

@mdmintz
Copy link
Member

mdmintz commented May 5, 2025

In CDP Mode you have to use the CDP methods.
Eg: driver.cdp.get_page_source().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid usage You may need to change what you're doing UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode
Projects
None yet
Development

No branches or pull requests

2 participants