Class SetContentOptions
- Namespace
- PuppeteerSharp
- Assembly
- PuppeteerSharp.dll
Options used by SetContentAsync(string, SetContentOptions) and SetContentAsync(string, SetContentOptions).
public record SetContentOptions : IEquatable<SetContentOptions>
- Inheritance
-
SetContentOptions
- Implements
Remarks
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
CancellationToken
Optional cancellation token to abort the operation.
public CancellationToken? CancellationToken { get; set; }
Property Value
Timeout
Maximum operation time in milliseconds, defaults to 30 seconds, pass 0 to disable timeout.
public int? Timeout { get; set; }
Property Value
- int?
Remarks
The default value can be changed by setting the DefaultNavigationTimeout or DefaultTimeout property.
WaitUntil
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.
public WaitUntilNavigation[] WaitUntil { get; set; }
Property Value
Remarks
Networkidle0 and Networkidle2 are not supported here.