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 1
1
from seleniumbase import SB
2
2
3
3
with 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 ()
7
7
sb .assert_element ("img#captcha-success" , timeout = 3 )
8
8
sb .set_messenger_theme (location = "top_left" )
9
9
sb .post_message ("SeleniumBase wasn't detected" , duration = 3 )
Original file line number Diff line number Diff line change 4
4
with SB (uc = True , test = True ) as sb :
5
5
url = "https://gitlab.com/users/sign_in"
6
6
sb .uc_open_with_reconnect (url , 4 )
7
- sb .uc_gui_click_cf ()
7
+ sb .uc_gui_click_captcha ()
8
8
sb .assert_text ("Username" , '[for="user_login"]' , timeout = 3 )
9
9
sb .assert_element ('label[for="user_login"]' )
10
10
sb .highlight ('button:contains("Sign in")' )
You can’t perform that action at this time.
0 commit comments