Table of Contents

Class FrameWaitForNavigationOptions

Namespace
Microsoft.Playwright
Assembly
Microsoft.Playwright.dll
public class FrameWaitForNavigationOptions
Inheritance
FrameWaitForNavigationOptions
Inherited Members

Constructors

FrameWaitForNavigationOptions()

public FrameWaitForNavigationOptions()

FrameWaitForNavigationOptions(FrameWaitForNavigationOptions)

public FrameWaitForNavigationOptions(FrameWaitForNavigationOptions clone)

Parameters

clone FrameWaitForNavigationOptions

Properties

Timeout

Maximum operation time in milliseconds, defaults to 30 seconds, pass 0 to disable timeout. The default value can be changed by using the SetDefaultNavigationTimeout(float), SetDefaultTimeout(float), SetDefaultNavigationTimeout(float) or SetDefaultTimeout(float) methods.

[JsonPropertyName("timeout")]
public float? Timeout { get; set; }

Property Value

float?

Url

A glob pattern, regex pattern or predicate receiving to match while waiting for the navigation. Note that if the parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly equal to the string.

[JsonPropertyName("url")]
public string? Url { get; set; }

Property Value

string

UrlFunc

A glob pattern, regex pattern or predicate receiving to match while waiting for the navigation. Note that if the parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly equal to the string.

[JsonPropertyName("urlFunc")]
public Func<string, bool>? UrlFunc { get; set; }

Property Value

Func<string, bool>

UrlRegex

A glob pattern, regex pattern or predicate receiving to match while waiting for the navigation. Note that if the parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly equal to the string.

[JsonPropertyName("urlRegex")]
public Regex? UrlRegex { get; set; }

Property Value

Regex

UrlString

A glob pattern, regex pattern or predicate receiving to match while waiting for the navigation. Note that if the parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly equal to the string.

[JsonPropertyName("urlString")]
public string? UrlString { get; set; }

Property Value

string

WaitUntil

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' - **DISCOURAGED** consider operation to be finished when there are no network connections for at least 500 ms. Don't use this method for testing, rely on web assertions to assess readiness instead.
  • 'commit' - consider operation to be finished when network response is received and the document started loading.
[JsonPropertyName("waitUntil")]
public WaitUntilState? WaitUntil { get; set; }

Property Value

WaitUntilState?