Last active
February 29, 2020 21:59
-
-
Save teal33t/b6cb892dcb0c421837ecc2495e2b9c61 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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