WaitForOptions
Namespace: PuppeteerSharp
public class WaitForOptionsTimeout options.
Inheritance: object
Derived: WaitForFunctionOptions, WaitForNetworkIdleOptions, WaitForSelectorOptions
Constructors
Section titled “Constructors”WaitForOptions()
Section titled “WaitForOptions()”public WaitForOptions()Initializes a new instance of the WaitForOptions class.
WaitForOptions(int)
Section titled “WaitForOptions(int)”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. |
Properties
Section titled “Properties”CancellationToken
Section titled “CancellationToken”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.
Timeout
Section titled “Timeout”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?
Made with love by Dario Kondratiuk