File tree 3 files changed +9
-10
lines changed
3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 4
4
url = "https://ahrefs.com/website-authority-checker"
5
5
input_field = 'input[placeholder="Enter domain"]'
6
6
submit_button = 'span:contains("Check Authority")'
7
- sb .driver . uc_open_with_reconnect (url , 2 ) # The bot-check is later
7
+ sb .uc_open_with_reconnect (url , 2 ) # The bot-check is later
8
8
sb .type (input_field , "github.com/seleniumbase/SeleniumBase" )
9
- sb .driver .reconnect (0.1 )
10
- sb .driver .uc_click (submit_button , reconnect_time = 4 )
9
+ sb .reconnect (0.1 )
10
+ sb .uc_click (submit_button , reconnect_time = 4 )
11
+ sb .uc_gui_click_captcha ()
11
12
sb .wait_for_text_not_visible ("Checking" , timeout = 10 )
12
13
sb .highlight ('p:contains("github.com/seleniumbase/SeleniumBase")' )
13
14
sb .highlight ('a:contains("Top 100 backlinks")' )
Original file line number Diff line number Diff line change 12
12
sb .click ('span:contains("9:00 PM")' )
13
13
sb .highlight_click ('input[value="AR"] + span' )
14
14
sb .click ('input[value="cc"] + span' )
15
- sb .scroll_to (" div. cf-turnstile-wrapper" )
15
+ sb .scroll_to (' div[class*=" cf-turnstile"]' )
16
16
sb .uc_gui_handle_cf ()
17
17
sb .highlight ("img#captcha-success" , timeout = 3 )
18
18
sb .highlight_click ('button:contains("Request & Pay")' )
Original file line number Diff line number Diff line change 3
3
4
4
with SB (uc = True , test = True , disable_csp = True ) as sb :
5
5
url = "https://steamdb.info/"
6
- sb .driver .uc_open_with_reconnect (url , 3 )
7
- sb .uc_click ("a.header-login span" , 4 )
8
- if not sb .is_text_visible ("Sign in" , "button#js-sign-in" ):
9
- sb .driver .uc_open_with_reconnect (url , 3 )
10
- sb .uc_click ("a.header-login span" , 4 )
6
+ sb .uc_open_with_reconnect (url , 3 )
7
+ sb .uc_click ("a.header-login span" , 3 )
8
+ sb .uc_gui_click_captcha ()
11
9
sb .assert_text ("Sign in" , "button#js-sign-in" , timeout = 3 )
12
- sb .driver . uc_click ("button#js-sign-in" , 2 )
10
+ sb .uc_click ("button#js-sign-in" , 2 )
13
11
sb .highlight ("div.page_content form" )
14
12
sb .highlight ('button:contains("Sign in")' , scroll = False )
15
13
sb .set_messenger_theme (location = "top_center" )
You can’t perform that action at this time.
0 commit comments