Table of Contents

Class WaitOptions

Namespace
CobaltPdf.WebKit
Assembly
CobaltPDF.WebKit.dll

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

WaitOptions

Methods

ForDelay(TimeSpan)

Waits for a fixed time delay.

public static WaitOptions ForDelay(TimeSpan delay)

Parameters

delay TimeSpan

Returns

WaitOptions

ForJavaScript(string, TimeSpan?)

Waits for a JavaScript expression to become truthy (polled).

public static WaitOptions ForJavaScript(string jsExpression, TimeSpan? timeout = null)

Parameters

jsExpression string
timeout TimeSpan?

Returns

WaitOptions

ForSelector(string, TimeSpan?)

Waits for a CSS selector to be visible on the page.

public static WaitOptions ForSelector(string selector, TimeSpan? timeout = null)

Parameters

selector string
timeout TimeSpan?

Returns

WaitOptions

ForSignal(TimeSpan)

Waits for a window.cobaltNotifyRender() signal.

public static WaitOptions ForSignal(TimeSpan timeout)

Parameters

timeout TimeSpan

Returns

WaitOptions