Skip to content

Instantly share code, notes, and snippets.

@teal33t
Created February 29, 2020 22:21
Show Gist options
  • Save teal33t/4b2d019bf7f5e2f1b4b79d28154f3fef to your computer and use it in GitHub Desktop.
Save teal33t/4b2d019bf7f5e2f1b4b79d28154f3fef to your computer and use it in GitHub Desktop.
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