class Playwright::Frame::NavigateOptions

Included Modules

Defined in:

playwright/frame.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(timeout : Int32 | Nil = nil, wait_until : Playwright::Frame::LoadState | Nil = nil, referer : Nil | String = nil) #

[View source]

Instance Method Detail

def referer : String | Nil #

Referer header value. If provided it will take preference over the referer header value set by page.setExtraHTTPHeaders(headers).


[View source]
def referer=(referer : String | Nil) #

Referer header value. If provided it will take preference over the referer header value set by page.setExtraHTTPHeaders(headers).


[View source]
def timeout : Int32 | Nil #

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.


[View source]
def timeout=(timeout : Int32 | Nil) #

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.


[View source]
def wait_until : LoadState | Nil #

When to consider operation succeeded, defaults to load. Events can be either:

  • 'domcontentloaded' - consider operation to be finished when the DOMContentLoaded event is fired.
  • 'load' - consider operation to be finished when the load event is fired.
  • 'networkidle' - consider operation to be finished when there are no network connections for at least 500 ms.

[View source]
def wait_until=(wait_until : LoadState | Nil) #

When to consider operation succeeded, defaults to load. Events can be either:

  • 'domcontentloaded' - consider operation to be finished when the DOMContentLoaded event is fired.
  • 'load' - consider operation to be finished when the load event is fired.
  • 'networkidle' - consider operation to be finished when there are no network connections for at least 500 ms.

[View source]