Skip to content

NavigationOptions

Namespace: PuppeteerSharp

public record NavigationOptions : IEquatable<NavigationOptions>

Navigation options used by WaitForNavigationAsync(NavigationOptions) and NavigationOptions).

Inheritance: object

Implements: IEquatable<NavigationOptions>

Derived: ReloadOptions

View source

public CancellationToken? CancellationToken { get; set; }

Optional cancellation token to abort navigation.

Value: CancellationToken?

View source

public string Referer { get; set; }

Referer header value. If provided it will take prefrence over the referer header value set by String%7d).

Value: string — The referer.

View source

public string ReferrerPolicy { get; set; }

Referrer policy. If provided it will take preference over the referer-policy header value set by String%7d).

Value: string

View source

public int? Timeout { get; set; }

Maximum navigation time in milliseconds, defaults to 30 seconds, pass 0 to disable timeout.

Value: int?

The default value can be changed by setting the DefaultNavigationTimeout or DefaultTimeout property.

View source

public WaitUntilNavigation[] WaitUntil { get; set; }

When to consider navigation succeeded, defaults to Load. Given an array of WaitUntilNavigation, navigation is considered to be successful after all events have been fired.

Value: WaitUntilNavigation\[\]

View source

Made with love by Dario Kondratiuk