Skip to content

Cannot click Cloudflare popup human verification checkbox #4278

@markuusche

Description

@markuusche

Hello creator, I have this issue where after clicking login button, there is a pop-up cloudflare human verification, the checkbox needs to be checked or clicked before it can proceed logging in. I was hoping your module can solve this issue of mine 😄. I tried using .click_captcha() and .solve_captcha() or even the .uc_gui_click_captcha() also these functions does not have docs strings, I was wondering what it is really use for, for clarification. anyway, it seems like it does not click or do anything. I even added sleep for 5 seconds since there is a mini loading before it shows the checkbox.

here's the visual example:

Image Image

is possible to click the checkbox? 🤔

code example:

from seleniumbase import SB
from time import sleep

custom_flags = f"--app={target_url}"
with SB(uc=True, agent=mobile_ua, chromium_arg=custom_flags) as sb:
    sb.activate_cdp_mode(target_url)
    sb.wait_for_element_visible("button.btn-accept")
    sb.click("button.btn-accept")
    sb.click("div.notLogin")
    sb.wait_for_element_visible("#phoneEmail")
    sleep(2)
    sb.send_keys("#phoneEmail", "09123456789")
    sleep(1)
    sb.click("div.tnc-checkbox-wrapper > div  > div")  # not the cf checkbox
    sleep(1)
    sb.click("button[type='submit']") # this is where the popup shows-up after clicking
    sleep(5)
    sb.click_captcha()
    
    sleep(9999) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    UC Mode / CDP ModeUndetected Chromedriver Mode / CDP Modecan't reproduceWe tried to see what you saw, but didn't

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions