class Playwright::Frame::WaitForNavigationOptions
- Playwright::Frame::WaitForNavigationOptions
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
playwright/frame.crConstructors
- .new(pull : JSON::PullParser)
- .new(timeout : Int32 | Nil = nil, url : String -> Bool | Regex | String | Nil = nil, wait_until : Playwright::Frame::LoadState | Nil = nil)
Instance Method Summary
- #glob : String | Nil
- #glob=(val : String | Nil)
- #pattern : Regex | Nil
- #pattern=(val : Regex | Nil)
- #predicate : String -> Bool | Nil
- #predicate=(val : String -> Bool | Nil)
-
#timeout : Int32 | Nil
Maximum operation time in milliseconds, defaults to 30 seconds, pass
0
to disable timeout. -
#timeout=(timeout : Int32 | Nil)
Maximum operation time in milliseconds, defaults to 30 seconds, pass
0
to disable timeout. - #url : String | Regex | Proc(String, Bool) | Nil | Nil
- #url=(url : String | Regex | Proc(String, Bool) | Nil | Nil)
-
#wait_until : LoadState | Nil
When to consider operation succeeded, defaults to
load
. -
#wait_until=(wait_until : LoadState | Nil)
When to consider operation succeeded, defaults to
load
.
Constructor Detail
Instance Method Detail
Maximum operation time in milliseconds, defaults to 30 seconds, pass 0
to disable timeout. The default value can be changed by using the browserContext.setDefaultNavigationTimeout(timeout)
, browserContext.setDefaultTimeout(timeout)
, page.setDefaultNavigationTimeout(timeout)
or page.setDefaultTimeout(timeout)
methods.
Maximum operation time in milliseconds, defaults to 30 seconds, pass 0
to disable timeout. The default value can be changed by using the browserContext.setDefaultNavigationTimeout(timeout)
, browserContext.setDefaultTimeout(timeout)
, page.setDefaultNavigationTimeout(timeout)
or page.setDefaultTimeout(timeout)
methods.
When to consider operation succeeded, defaults to load
. Events can be either:
'domcontentloaded'
- consider operation to be finished when theDOMContentLoaded
event is fired.'load'
- consider operation to be finished when theload
event is fired.'networkidle'
- consider operation to be finished when there are no network connections for at least500
ms.
When to consider operation succeeded, defaults to load
. Events can be either:
'domcontentloaded'
- consider operation to be finished when theDOMContentLoaded
event is fired.'load'
- consider operation to be finished when theload
event is fired.'networkidle'
- consider operation to be finished when there are no network connections for at least500
ms.