Skip to content

Instantly share code, notes, and snippets.

@medwards
Created January 16, 2013 14:46
Show Gist options
  • Select an option

  • Save medwards/4547601 to your computer and use it in GitHub Desktop.

Select an option

Save medwards/4547601 to your computer and use it in GitHub Desktop.
Uses is_displayed_bug.html
from selenium import webdriver
from time import sleep
foo = webdriver.Firefox()
foo.get('file:///tmp/is_displayed_bug.html')
sleep(5)
element = foo.find_element_by_id('loading_status')
print "Element returned was %s with visibility equal to %s" % (element.text,
element.is_displayed())
foo.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment