class Playwright::Frame::WaitForNavigationOptions

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, url : String -> Bool | Regex | String | Nil = nil, wait_until : Playwright::Frame::LoadState | Nil = nil) #

[View source]

Instance Method Detail

def glob : String | Nil #

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

[View source]
def pattern : Regex | Nil #

[View source]
def pattern=(val : Regex | Nil) #

[View source]
def predicate : String -> Bool | Nil #

[View source]
def predicate=(val : String -> Bool | Nil) #

[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 url : String | Regex | Proc(String, Bool) | Nil | Nil #

[View source]
def url=(url : String | Regex | Proc(String, Bool) | Nil | Nil) #

[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]