-
| Hi, I´m trying to click on the CF checkbox on https://nowsecure.nl/#relax but it´s impossible to me. I used the code provided by @mdmintz on Stackoverflow with no luck so far, the checkbox is not marked Then I changed a few labels and classes to make it more accurate, but still not working: What´s wrong with my code?? | 
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
| 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 sb.is_element_visible('iframe[src*="challenge"]'):
                with sb.frame_switch('iframe[src*="challenge"]'):
                    sb.click("area")
            else:
                raise Exception("Detected!")
            try:
                verify_success(sb)
            except Exception:
                raise Exception("Detected!") | 
Beta Was this translation helpful? Give feedback.
-
| thank you mdmintz, now the click on the checkbox is working. Unfortunately, this script can´t bypass the Cloudfare captcha. I´ve been trying several times with no luck (at least in my computer and ip), so I assume CF upgraded their protection recently. I´ll keep an eye at this repository in case new versions could bypass cloudfare. Edit: | 
Beta Was this translation helpful? Give feedback.
-
| Today? That´s really recent. Great, I´ll be keeping an eye at your updates. Thanks! | 
Beta Was this translation helpful? Give feedback.

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