Skip to content

SetContentOptions

Namespace: PuppeteerSharp

public record SetContentOptions : IEquatable<SetContentOptions>

Options used by SetContentOptions) and SetContentOptions).

Inheritance: object

Implements: IEquatable<SetContentOptions>

The Networkidle0 and Networkidle2 values are not supported for SetContent operations and will be ignored. They have never worked reliably for this operation in upstream Puppeteer. Use WaitForNetworkIdleAsync(WaitForNetworkIdleOptions) separately if you need to wait for network idle after setting content.

View source

public CancellationToken? CancellationToken { get; set; }

Optional cancellation token to abort the operation.

Value: CancellationToken?

View source

public int? Timeout { get; set; }

Maximum operation 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 the operation succeeded, defaults to Load. Given an array of WaitUntilNavigation, the operation is considered to be successful after all events have been fired.

Value: WaitUntilNavigation\[\]

Networkidle0 and Networkidle2 are not supported here.

View source

Made with love by Dario Kondratiuk