File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 44 url = "https://ahrefs.com/website-authority-checker"
55 input_field = 'input[placeholder="Enter domain"]'
66 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
88 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 ()
1112 sb .wait_for_text_not_visible ("Checking" , timeout = 10 )
1213 sb .highlight ('p:contains("github.com/seleniumbase/SeleniumBase")' )
1314 sb .highlight ('a:contains("Top 100 backlinks")' )
Original file line number Diff line number Diff line change 1212 sb .click ('span:contains("9:00 PM")' )
1313 sb .highlight_click ('input[value="AR"] + span' )
1414 sb .click ('input[value="cc"] + span' )
15- sb .scroll_to (" div. cf-turnstile-wrapper" )
15+ sb .scroll_to (' div[class*=" cf-turnstile"]' )
1616 sb .uc_gui_handle_cf ()
1717 sb .highlight ("img#captcha-success" , timeout = 3 )
1818 sb .highlight_click ('button:contains("Request & Pay")' )
Original file line number Diff line number Diff line change 33
44with SB (uc = True , test = True , disable_csp = True ) as sb :
55 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 ()
119 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 )
1311 sb .highlight ("div.page_content form" )
1412 sb .highlight ('button:contains("Sign in")' , scroll = False )
1513 sb .set_messenger_theme (location = "top_center" )
You can’t perform that action at this time.
0 commit comments