Update `uc_gui_click_captcha()`

This commit is contained in:
Michael Mintz 2025-01-21 17:41:04 -05:00
parent b12765be76
commit 5119ee05da
1 changed files with 7 additions and 0 deletions

View File

@ -1217,6 +1217,13 @@ def _uc_gui_click_captcha(
and driver.is_element_present("#challenge-form div > div")
):
frame = "#challenge-form div > div"
elif (
driver.is_element_present('[name*="cf-turnstile-"]')
and driver.is_element_present(
'[style="display: grid;"] div div'
)
):
frame = '[style="display: grid;"] div div'
elif (
driver.is_element_present('[name*="cf-turnstile-"]')
and driver.is_element_present("[class*=spacer] + div div")