Last active
December 12, 2015 00:28
-
-
Save medwards/4683599 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
from selenium import webdriver | |
from time import sleep | |
foo = webdriver.Firefox() | |
foo.get('https://rawgithub.com/medwards/salad/master/salad/tests/html/browser/element_waiter.html') | |
sleep(20) | |
element = foo.find_element_by_id('appear') | |
print "Element returned had attribute myattr with value %s when it should be %s" % (element.get_attribute('myattr'), 'you') | |
foo.quit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment