-
| Hey, Chromedriver / Chrome version:123 / 123.0.6312.106 Selenium* versions:selenium==4.19.0 Showcase:https://i.imgur.com/cnpCxG5.gif Code used from:https://github.com/seleniumbase/SeleniumBase/blob/master/examples/raw_turnstile.py Tested URLs:https://nopecha.com/demo/turnstile --> Doesn't bypass CF | 
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
| It's working fine with the right scripts. Eg: from seleniumbase import SB
with SB(uc=True, test=True) as sb:
    sb.driver.uc_open_with_reconnect("nopecha.com/demo/turnstile", 3.4)
    if sb.is_element_visible("#example-container0 iframe"):
        sb.switch_to_frame("#example-container0 iframe")
        if not sb.is_element_visible("circle.success-circle"):
            sb.driver.uc_click("span.mark", reconnect_time=3)
            sb.switch_to_frame("#example-container0 iframe")
        sb.switch_to_default_content()
    sb.switch_to_frame("#example-container5 iframe")
    sb.driver.uc_click("span.mark", reconnect_time=2.5)
    sb.switch_to_frame("#example-container5 iframe")
    sb.assert_element("svg#success-icon", timeout=3)
    sb.switch_to_parent_frame()
    if sb.is_element_visible("#example-container0 iframe"):
        sb.switch_to_frame("#example-container0 iframe")
        sb.assert_element("circle.success-circle")
        sb.switch_to_parent_frame()
    sb.set_messenger_theme(location="top_center")
    sb.post_message("SeleniumBase wasn't detected!", duration=3)And for the other site: from seleniumbase import SB
with SB(uc=True, test=True, incognito=True) as sb:
    url = "https://cfcybernews.eu"
    sb.driver.uc_open_with_reconnect(url, 4)
    if not "没有找到站点" in sb.get_page_title():
        sb.driver.uc_open_with_reconnect(url, 4)
    sb.set_messenger_theme(location="top_center", theme="ice")
    sb.post_message("SeleniumBase wasn't detected!", duration=3) | 
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
| Problems are gone with the newest update :? | 
Beta Was this translation helpful? Give feedback.

It's working fine with the right scripts. Eg: