mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2025-06-07 20:15:24 +00:00
add js click on iframe_body
This commit is contained in:
parent
2900c58165
commit
42714b248f
@ -288,11 +288,12 @@ def click_verify(driver: WebDriver):
|
||||
return document.querySelector('body');
|
||||
""")
|
||||
if iframe_body:
|
||||
iframe_body.click()
|
||||
actions = ActionChains(driver)
|
||||
actions.move_to_element_with_offset(iframe_body, 10, 10)
|
||||
actions.click(iframe_body)
|
||||
actions.perform()
|
||||
logging.debug("Cloudflare verify checkbox found and clicked!")
|
||||
logging.debug("Attempted to click on iframe body")
|
||||
except Exception as e:
|
||||
logging.debug("Cloudflare verify checkbox not found on the page. %s", repr(e))
|
||||
finally:
|
||||
|
Loading…
x
Reference in New Issue
Block a user