Module: LapisLazuli::BrowserModule::Wait
Overview
Wait functionality for Browser
Constant Summary
Constants included from ArgParse
Instance Method Summary collapse
- #multi_wait(*args) ⇒ Object
-
#multi_wait_all(*args) ⇒ Object
Same arguments as for the find functions, but a few more options are valid:.
- #wait(*args) ⇒ Object
- #wait_all(*args) ⇒ Object
Methods included from ArgParse
#make_list_from_item, #make_list_from_nested, #parse_args
Instance Method Details
#multi_wait(*args) ⇒ Object
36 37 38 |
# File 'lib/lapis_lazuli/browser/wait.rb', line 36 def multi_wait(*args) return internal_wait(:multi_find, *args) end |
#multi_wait_all(*args) ⇒ Object
Same arguments as for the find functions, but a few more options are valid:
:timeout - specifies the timeout to wait for, defaulting to 10 seconds :condition - specifies the condition to wait for, either of :while or
:until. The default is :until.
:screenshot - boolean flag determining whether a screenshot should be made
if the function produces an error. The default is false.
28 29 30 |
# File 'lib/lapis_lazuli/browser/wait.rb', line 28 def multi_wait_all(*args) return internal_wait(:multi_find_all, *args) end |
#wait(*args) ⇒ Object
40 41 42 |
# File 'lib/lapis_lazuli/browser/wait.rb', line 40 def wait(*args) return internal_wait(:find, *args) end |
#wait_all(*args) ⇒ Object
32 33 34 |
# File 'lib/lapis_lazuli/browser/wait.rb', line 32 def wait_all(*args) return internal_wait(:find_all, *args) end |