SeleniumBase Solves CAPTCHA Once, But Fails on Second Attempt on Login Page #3233
-
I'm using SeleniumBase with uc=True to interact with a site that has two CAPTCHAs during the login process. The first CAPTCHA is solved successfully using sb.uc_gui_click_captcha(), but on the second CAPTCHA, the solution doesn’t complete, and SeleniumBase fails to proceed. Here’s the code snippet: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
I think I see the issue. The CAPTCHA section is right-aligned, changing the checkbox coordinates. I can add a fix in the next release. (Probably soon.) In the meantime, you can probably use |
Beta Was this translation helpful? Give feedback.
-
Use the new CDP Mode within UC Mode (with SeleniumBase from seleniumbase import SB
with SB(uc=True, test=True) as sb:
url = "https://agents.moderationinterface.com"
sb.activate_cdp_mode(url)
sb.uc_gui_click_captcha()
sb.sleep(2)
sb.uc_gui_click_captcha()
sb.sleep(2) |
Beta Was this translation helpful? Give feedback.
Use the new CDP Mode within UC Mode (with SeleniumBase
4.32.5
, or newer if available):