class Playwright::Frame::NavigateOptions
- Playwright::Frame::NavigateOptions
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
playwright/frame.crConstructors
- .new(pull : JSON::PullParser)
- .new(timeout : Int32 | Nil = nil, wait_until : Playwright::Frame::LoadState | Nil = nil, referer : Nil | String = nil)
Instance Method Summary
-
#referer : String | Nil
Referer header value.
-
#referer=(referer : String | Nil)
Referer header value.
-
#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. -
#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
Referer header value. If provided it will take preference over the referer header value set by page.setExtraHTTPHeaders(headers)
.
Referer header value. If provided it will take preference over the referer header value set by page.setExtraHTTPHeaders(headers)
.
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.