1
0
mirror of https://github.com/django/django.git synced 2024-12-25 02:26:12 +00:00

The timeout variable wasn't defined, which was a little confusing.

This commit is contained in:
Brent O'Connor 2012-10-30 16:19:31 -07:00
parent 08cf54990a
commit d55c54a5da

View File

@ -2084,6 +2084,7 @@ out the `full reference`_ for more details.
def test_login(self): def test_login(self):
from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support.wait import WebDriverWait
timeout = 2
... ...
self.selenium.find_element_by_xpath('//input[@value="Log in"]').click() self.selenium.find_element_by_xpath('//input[@value="Log in"]').click()
# Wait until the response is received # Wait until the response is received