Skip to content

Followed example code but can't bypass Cloudflare #3201

Answered by mdmintz
benllpSec asked this question in Q&A
Discussion options

You must be logged in to vote

This worked for me:

from seleniumbase import SB

with SB(uc=True, test=True) as sb:
    url = "https://seleniumbase.io/apps/turnstile"
    sb.uc_open_with_reconnect(url)
    sb.uc_gui_click_captcha()
    sb.assert_element("img#captcha-success", timeout=3)
    sb.set_messenger_theme(location="top_left")
    sb.post_message("SeleniumBase wasn't detected", duration=3)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@benllpSec
Comment options

Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants