File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 1+ from seleniumbase import SB
2+
3+ with SB (uc = True , test = True ) as sb :
4+ url = "https://seleniumbase.io/apps/recaptcha"
5+ sb .uc_open_with_reconnect (url )
6+ sb .uc_gui_click_captcha ()
7+ sb .assert_element ("img#captcha-success" , timeout = 3 )
8+ sb .set_messenger_theme (location = "top_left" )
9+ sb .post_message ("SeleniumBase wasn't detected" , duration = 3 )
Original file line number Diff line number Diff line change 11from seleniumbase import SB
22
33with SB (uc = True , test = True ) as sb :
4- url = "seleniumbase.io/apps/turnstile"
5- sb .uc_open_with_reconnect (url , reconnect_time = 2 )
6- sb .uc_gui_handle_cf ()
4+ url = "https:// seleniumbase.io/apps/turnstile"
5+ sb .uc_open_with_reconnect (url )
6+ sb .uc_gui_click_captcha ()
77 sb .assert_element ("img#captcha-success" , timeout = 3 )
88 sb .set_messenger_theme (location = "top_left" )
99 sb .post_message ("SeleniumBase wasn't detected" , duration = 3 )
Original file line number Diff line number Diff line change 44with SB (uc = True , test = True ) as sb :
55 url = "https://gitlab.com/users/sign_in"
66 sb .uc_open_with_reconnect (url , 4 )
7- sb .uc_gui_click_cf ()
7+ sb .uc_gui_click_captcha ()
88 sb .assert_text ("Username" , '[for="user_login"]' , timeout = 3 )
99 sb .assert_element ('label[for="user_login"]' )
1010 sb .highlight ('button:contains("Sign in")' )
You can’t perform that action at this time.
0 commit comments