Instantly share code, notes, and snippets.

Embed
What would you like to do?
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import WebDriverException
driver = webdriver.Chrome("/Users/kzfm/chromedriver")
url = "https://www.release.tdnet.info/index.html"
driver.get(url)
iframe = driver.find_element_by_tag_name("iframe")
driver.switch_to_frame(iframe)
driver.find_element_by_name("q").send_keys("66160")
driver.save_screenshot("test.png")
driver.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment