Skip to content

Commit 98fcf57

Browse files
committed
Corrected and added to examples for importing Selenium2Library. Added link to external resource concerning the implicit wait parameter.
1 parent 70d5984 commit 98fcf57

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/Selenium2Library/__init__.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ def __init__(self, timeout=5.0, implicit_wait=0.0, run_on_failure='Capture Page
9494
9595
'implicit_wait' is the implicit timeout that Selenium waits when
9696
looking for elements.
97-
It can be later set with 'Set Selenium Implicit Wait'.
97+
It can be later set with `Set Selenium Implicit Wait`.
98+
See `WebDriver: Advanced Usage`__ section of the SeleniumHQ documentation
99+
for more information about WebDriver's implicit wait functionality.
100+
101+
__ http://seleniumhq.org/docs/04_webdriver_advanced.html#explicit-and-implicit-waits
98102
99103
`run_on_failure` specifies the name of a keyword (from any available
100104
libraries) to execute when a Selenium2Library keyword fails. By default
@@ -104,9 +108,11 @@ def __init__(self, timeout=5.0, implicit_wait=0.0, run_on_failure='Capture Page
104108
functionality.
105109
106110
Examples:
107-
| Library `|` Selenium2Library `|` 15 | # Sets default timeout to 15 seconds |
108-
| Library `|` Selenium2Library `|` 5 `|` Log Source | # Sets default timeout to 5 seconds and runs `Log Source` on failure |
109-
| Library `|` Selenium2Library `|` timeout=10 `|` run_on_failure=Nothing | # Sets default timeout to 10 seconds and does nothing on failure |
111+
| Library `|` Selenium2Library `|` 15 | # Sets default timeout to 15 seconds |
112+
| Library `|` Selenium2Library `|` 0 `|` 5 | # Sets default timeout to 0 seconds and default implicit_wait to 5 seconds |
113+
| Library `|` Selenium2Library `|` 5 `|` run_on_failure=Log Source | # Sets default timeout to 5 seconds and runs `Log Source` on failure |
114+
| Library `|` Selenium2Library `|` implicit_wait=5 `|` run_on_failure=Log Source | # Sets default implicit_wait to 5 seconds and runs `Log Source` on failure |
115+
| Library `|` Selenium2Library `|` timeout=10 `|` run_on_failure=Nothing | # Sets default timeout to 10 seconds and does nothing on failure |
110116
"""
111117
for base in Selenium2Library.__bases__:
112118
base.__init__(self)

0 commit comments

Comments
 (0)