Skip to content

Cannot click on checkbox #2051

Answered by mdmintz
mromot01 asked this question in Q&A
Sep 1, 2023 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

The web page had an update. Here's a new working script for it:

"""SB Manager using "uc"-mode for evading bot-detection."""
from seleniumbase import SB

def verify_success(sb):
    sb.assert_text("OH YEAH, you passed!", "h1", timeout=6.25)
    sb.post_message("Selenium wasn't detected!", duration=2.8)
    sb._print("\n Success! Website did not detect Selenium! ")

with SB(uc=True, incognito=True) as sb:
    sb.open("https://nowsecure.nl/#relax")
    try:
        verify_success(sb)
    except Exception:
        sb.get_new_driver(undetectable=True, incognito=True)
        sb.open("https://nowsecure.nl/#relax")
        try:
            verify_success(sb)
        except Exception:
            if

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Comment options

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

Comment options

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

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