SeleniumBase/examples/raw_turnstile.py

10 lines
357 B
Python
Raw Permalink Normal View History

2023-11-09 13:06:51 +08:00
from seleniumbase import SB
2024-06-28 12:02:23 +08:00
with SB(uc=True, test=True) as sb:
2024-07-09 04:58:44 +08:00
url = "https://seleniumbase.io/apps/turnstile"
sb.uc_open_with_reconnect(url)
sb.uc_gui_click_captcha()
2024-03-22 05:30:52 +08:00
sb.assert_element("img#captcha-success", timeout=3)
2023-11-09 13:06:51 +08:00
sb.set_messenger_theme(location="top_left")
2024-03-08 09:45:31 +08:00
sb.post_message("SeleniumBase wasn't detected", duration=3)