Created
February 29, 2020 22:21
-
-
Save teal33t/4b2d019bf7f5e2f1b4b79d28154f3fef 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
driver.switch_to.default_content() | |
iframes = driver.find_elements_by_tag_name("iframe") | |
driver.switch_to.frame(iframes[1]) | |
self.wait_between(LONG_MIN_RAND, LONG_MAX_RAND) | |
capt_btn = WebDriverWait(driver, 50).until( | |
EC.element_to_be_clickable((By.XPATH ,'//button[@id="solver-button"]')) | |
) | |
self.log("Wait") | |
driver.implicitly_wait(10) | |
self.log("Click") | |
capt_btn.click() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment