Skip to content

Instantly share code, notes, and snippets.

@medwards
Last active December 12, 2015 00:28
Show Gist options
  • Save medwards/4683599 to your computer and use it in GitHub Desktop.
Save medwards/4683599 to your computer and use it in GitHub Desktop.
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