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.
Properties
Section titled “Properties”CancellationToken
Section titled “CancellationToken”public CancellationToken? CancellationToken { get; set; }Optional cancellation token to abort the operation.
Value: CancellationToken?
Timeout
Section titled “Timeout”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.
WaitUntil
Section titled “WaitUntil”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.
Made with love by Dario Kondratiuk