Skip to content

Commit 5119ee0

Browse files
committed
Update uc_gui_click_captcha()
1 parent b12765b commit 5119ee0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,6 +1217,13 @@ def _uc_gui_click_captcha(
12171217
and driver.is_element_present("#challenge-form div > div")
12181218
):
12191219
frame = "#challenge-form div > div"
1220+
elif (
1221+
driver.is_element_present('[name*="cf-turnstile-"]')
1222+
and driver.is_element_present(
1223+
'[style="display: grid;"] div div'
1224+
)
1225+
):
1226+
frame = '[style="display: grid;"] div div'
12201227
elif (
12211228
driver.is_element_present('[name*="cf-turnstile-"]')
12221229
and driver.is_element_present("[class*=spacer] + div div")

0 commit comments

Comments
 (0)