From d55c54a5da241e294c1162a19a07ab3f59e58dc7 Mon Sep 17 00:00:00 2001 From: Brent O'Connor Date: Tue, 30 Oct 2012 16:19:31 -0700 Subject: [PATCH] The timeout variable wasn't defined, which was a little confusing. --- docs/topics/testing.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/topics/testing.txt b/docs/topics/testing.txt index f5fd4fe3e6..8fccf32946 100644 --- a/docs/topics/testing.txt +++ b/docs/topics/testing.txt @@ -2084,6 +2084,7 @@ out the `full reference`_ for more details. def test_login(self): from selenium.webdriver.support.wait import WebDriverWait + timeout = 2 ... self.selenium.find_element_by_xpath('//input[@value="Log in"]').click() # Wait until the response is received