14 lines
496 B
Python
14 lines
496 B
Python
"""UC Mode has PyAutoGUI methods for CAPTCHA-bypass."""
|
|
from seleniumbase import SB
|
|
|
|
with SB(uc=True, test=True) as sb:
|
|
url = "https://seleniumbase.io/hobbit/login"
|
|
sb.uc_open_with_disconnect(url, 2.2)
|
|
sb.uc_gui_press_keys("\t ")
|
|
sb.reconnect(1.5)
|
|
sb.assert_text("Welcome to Middle Earth!", "h1")
|
|
sb.set_messenger_theme(location="bottom_center")
|
|
sb.post_message("SeleniumBase wasn't detected!")
|
|
sb.click("img")
|
|
sb.sleep(5.888) # Cool animation happening now!
|