add js click on iframe_body

This commit is contained in:
MCG-pok 2024-07-19 02:25:29 +02:00 committed by Bogdan
parent 2900c58165
commit 42714b248f

View File

@ -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: