Skip to content

WaitForOptions

Namespace: PuppeteerSharp

public class WaitForOptions

Timeout options.

Inheritance: object

Derived: WaitForFunctionOptions, WaitForNetworkIdleOptions, WaitForSelectorOptions

View source

public WaitForOptions()

Initializes a new instance of the WaitForOptions class.

View source

public WaitForOptions(int timeout)

Initializes a new instance of the WaitForOptions class.

Parameters

Name Type Description
timeout int Maximum time to wait for in milliseconds. Defaults to 30000 (30 seconds). Pass 0 to disable timeout.

View source

public CancellationToken CancellationToken { get; set; }

A CancellationToken to abort the wait operation.

Value: CancellationToken

This is the .NET equivalent of the upstream AbortController/AbortSignal pattern. When the token is cancelled, the wait operation will throw a OperationCanceledException.

View source

public int? Timeout { get; set; }

Maximum time to wait for in milliseconds. Defaults to 30000 (30 seconds). Pass 0 to disable timeout. The default value can be changed by setting the DefaultTimeout property.

Value: int?

View source

Made with love by Dario Kondratiuk