Created
October 3, 2017 06:54
-
-
Save aaltat/5625296ad81a1083161141c6a98e0553 to your computer and use it in GitHub Desktop.
This file contains 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
import time | |
from glance_dom import GlanceDom | |
from selenium import webdriver | |
driver = webdriver.Chrome() | |
driver.get('https://github.com/robotframework/SeleniumLibrary') | |
glance = GlanceDom(driver) | |
issues = glance.get_element('SeleniumLibrary > Issues') | |
issues.click() | |
while not glance.get_elements('input ^ js-issues-search#id'): | |
time.sleep(1) | |
search = glance.get_element('input ^ js-issues-search#id') | |
search.send_keys('Tatu\n') | |
time.sleep(5) | |
driver.get_screenshot_as_file('C:/foo.png') | |
driver.quit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment