NavigationOptions
Namespace: PuppeteerSharp
public record NavigationOptions : IEquatable<NavigationOptions>Navigation options used by WaitForNavigationAsync(NavigationOptions) and NavigationOptions).
Inheritance: object
Implements: IEquatable<NavigationOptions>
Derived: ReloadOptions
Properties
Section titled “Properties”CancellationToken
Section titled “CancellationToken”public CancellationToken? CancellationToken { get; set; }Optional cancellation token to abort navigation.
Value: CancellationToken?
Referer
Section titled “Referer”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.
ReferrerPolicy
Section titled “ReferrerPolicy”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
Timeout
Section titled “Timeout”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.
WaitUntil
Section titled “WaitUntil”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\[\]
Made with love by Dario Kondratiuk