Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

uc_gui_click_captcha() fails to solve Cloudflare CAPTCHA pre- and post-login, causing "WebDriver unresponsive" #3924

SimranGupta1123 started this conversation in General
Discussion options

We are using SeleniumBase’s uc_gui_click_captcha() to solve Cloudflare turnstile CAPTCHAs now fails both before and after login.
Previously the CAPTCHA only appeared on the landing page, but recently it started showing up pre-login and post-login.

The keyword fails to successfully complete even after multiple retries and on rare occasions when it does "succeed," it errors out with webdriver becoming unresponsive.
eg., just after the captcha click we are trying to capture the screenshot. getting below error:
HTTPConnectionPool(host='localhost', port=45429): Max retries exceeded with url: /session/749cea657f22784dfd5d6faaa58f8c3f/screenshot (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff047e28f50>: Failed to establish a new connection: [Errno 111] Connection refused'))

thanks,

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

I'm not able to reproduce this. Will need more info, code, etc.
uc_gui_click_captcha() is working correctly in GitHub Actions: https://github.com/mdmintz/undetected-testing/actions/runs/16915996351/job/47929930767

If you're trying to call a WebDriver method, (such as taking a screenshot), after CDP Mode has been activated, make sure to reconnect the driver first (eg. sb.reconnect()). Or use CDP methods instead of WebDriver methods when disconnected.

You must be logged in to vote
1 reply
Comment options

after the uc_gui_click_captcha(), was not reconnecting to the driver, will try this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /