Skip to content

Commit 3835797

Browse files
committed
Update UC Mode
1 parent ee91687 commit 3835797

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,14 @@ def _uc_gui_click_captcha(
801801
pass
802802
else:
803803
visible_iframe = False
804-
if driver.is_element_present(".cf-turnstile-wrapper"):
804+
if (
805+
frame != "iframe"
806+
and driver.is_element_present(
807+
"%s .cf-turnstile-wrapper" % frame
808+
)
809+
):
810+
frame = "%s .cf-turnstile-wrapper" % frame
811+
elif driver.is_element_present(".cf-turnstile-wrapper"):
805812
frame = ".cf-turnstile-wrapper"
806813
elif driver.is_element_present(
807814
'[data-callback="onCaptchaSuccess"]'

0 commit comments

Comments
 (0)