diff options
| author | juanpex <jpma55@gmail.com> | 2012-08-27 21:04:20 -0300 |
|---|---|---|
| committer | juanpex <jpma55@gmail.com> | 2012-08-27 21:04:20 -0300 |
| commit | bfa3d5af34937eef52dc4cfb22e831ff4a720fe8 (patch) | |
| tree | 5595b17ff513b8fa9d3445db193fc0a7f42e83b6 | |
| parent | 5a9e127efc37490b2a1caa605e987a693245b5fa (diff) | |
fix documentation testing of Selenium WebDriverWait
According to the documentation of Selenium, WebDriverWait class has no timeout parameter and using the code fails.
http://selenium.googlecode.com/svn/trunk/docs/api/java/org/openqa/selenium/support/ui/FluentWait.html#until%28com.google.common.base.Predicate%29
| -rw-r--r-- | docs/topics/testing.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/testing.txt b/docs/topics/testing.txt index 1f4c970d3e..c4c73733f5 100644 --- a/docs/topics/testing.txt +++ b/docs/topics/testing.txt @@ -2039,7 +2039,7 @@ out the `full reference`_ for more details. self.selenium.find_element_by_xpath('//input[@value="Log in"]').click() # Wait until the response is received WebDriverWait(self.selenium, timeout).until( - lambda driver: driver.find_element_by_tag_name('body'), timeout=10) + lambda driver: driver.find_element_by_tag_name('body')) The tricky thing here is that there's really no such thing as a "page load," especially in modern Web apps that generate HTML dynamically after the |
