-
Notifications
You must be signed in to change notification settings - Fork 1.4k
uc_gui_click_captcha() fails to solve Cloudflare CAPTCHA pre- and post-login, causing "WebDriver unresponsive" #3924
-
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,
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 1 reply
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
-
after the uc_gui_click_captcha()
, was not reconnecting to the driver, will try this.
Beta Was this translation helpful? Give feedback.