File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -812,6 +812,16 @@ def _uc_gui_click_captcha(
812
812
and driver .is_element_present ("div.spacer div[style]" )
813
813
):
814
814
frame = "div.spacer div[style]"
815
+ elif (
816
+ (
817
+ driver .is_element_present ('[name*="cf-turnstile-"]' )
818
+ or driver .is_element_present ('[id*="cf-turnstile-"]' )
819
+ )
820
+ and driver .is_element_present (
821
+ 'form div div[style*="margin"][style*="padding"]'
822
+ )
823
+ ):
824
+ frame = 'form div div[style*="margin"][style*="padding"]'
815
825
elif (
816
826
frame != "iframe"
817
827
and driver .is_element_present (
@@ -1017,7 +1027,7 @@ def uc_gui_handle_cf(driver, frame="iframe"):
1017
1027
time .sleep (0.02 )
1018
1028
active_element_css = js_utils .get_active_element_css (driver )
1019
1029
if (
1020
- active_element_css == "div.cf-turnstile-wrapper"
1030
+ active_element_css . startswith ( "div.cf-turnstile" )
1021
1031
or active_element_css .startswith ("div#PYMIw2" )
1022
1032
):
1023
1033
found_checkbox = True
You can’t perform that action at this time.
0 commit comments