Skip to content

Instantly share code, notes, and snippets.

@teal33t
Last active February 29, 2020 21:59
Show Gist options
  • Save teal33t/b6cb892dcb0c421837ecc2495e2b9c61 to your computer and use it in GitHub Desktop.
Save teal33t/b6cb892dcb0c421837ecc2495e2b9c61 to your computer and use it in GitHub Desktop.
self.log("Switch to new frame")
driver.switch_to.frame(driver.find_elements_by_tag_name("iframe")[0])
self.log("Wait for recaptcha-anchor")
check_box = WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.ID ,"recaptcha-anchor")))
self.log("Wait")
self.wait_between(MIN_RAND, MAX_RAND)
action = ActionChains(driver);
self.human_like_mouse_move(action, check_box)
self.log("Click")
check_box.click()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment