Skip to content

Commit 5e737ee

Browse files
committed
Update UC Mode
1 parent fae261e commit 5e737ee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,6 +1302,8 @@ def _uc_gui_click_captcha(
13021302
frame = "body > div#check > div:not([class])"
13031303
elif driver.is_element_present(".cf-turnstile-wrapper"):
13041304
frame = ".cf-turnstile-wrapper"
1305+
elif driver.is_element_present('[class="cf-turnstile"]'):
1306+
frame = '[class="cf-turnstile"]'
13051307
elif driver.is_element_present(
13061308
'[data-callback="onCaptchaSuccess"]'
13071309
):
@@ -1617,6 +1619,10 @@ def _uc_gui_handle_captcha_(driver, frame="iframe", ctype=None):
16171619
)
16181620
):
16191621
frame = "body > div#check > div:not([class])"
1622+
elif driver.is_element_present(".cf-turnstile-wrapper"):
1623+
frame = ".cf-turnstile-wrapper"
1624+
elif driver.is_element_present('[class="cf-turnstile"]'):
1625+
frame = '[class="cf-turnstile"]'
16201626
else:
16211627
return
16221628
else:

0 commit comments

Comments
 (0)