Class WaitOptions
Base class for defining a wait strategy before PDF rendering.
public abstract class WaitOptions
- Inheritance
-
WaitOptions
- Inherited Members
Properties
DefaultNetworkIdle
Default: waits for the network to be idle (no requests for 500 ms).
public static WaitOptions DefaultNetworkIdle { get; }
Property Value
Methods
ForDelay(TimeSpan)
Waits for a fixed time delay.
public static WaitOptions ForDelay(TimeSpan delay)
Parameters
delayTimeSpan
Returns
ForJavaScript(string, TimeSpan?)
Waits for a JavaScript expression to become truthy (polled).
public static WaitOptions ForJavaScript(string jsExpression, TimeSpan? timeout = null)
Parameters
Returns
ForSelector(string, TimeSpan?)
Waits for a CSS selector to be visible on the page.
public static WaitOptions ForSelector(string selector, TimeSpan? timeout = null)
Parameters
Returns
ForSignal(TimeSpan)
Waits for a window.cobaltNotifyRender() signal.
public static WaitOptions ForSignal(TimeSpan timeout)
Parameters
timeoutTimeSpan