Table of Contents

Interface IConnectionOptions

Namespace
PuppeteerSharp
Assembly
PuppeteerSharp.dll

Options for Connection creation.

public interface IConnectionOptions

Properties

EnqueueAsyncMessages

Affects how responses to SendAsync(string, object, bool, CommandOptions) are returned to the caller.

bool EnqueueAsyncMessages { get; set; }

Property Value

bool

EnqueueTransportMessages

If not PuppeteerSharp.Transport is set this will be use to determine is the default WebSocketTransport will enqueue messages.

bool EnqueueTransportMessages { get; set; }

Property Value

bool

ProtocolTimeout

Timeout setting for individual protocol (CDP) calls. Defaults to 180_000.

int ProtocolTimeout { get; set; }

Property Value

int

SlowMo

Slows down Puppeteer operations by the specified amount of milliseconds. Useful so that you can see what is going on.

int SlowMo { get; set; }

Property Value

int

TargetFilter

Callback to decide if Puppeteer should connect to a given target or not.

Func<Target, bool> TargetFilter { get; set; }

Property Value

Func<Target, bool>

TransportFactory

Optional factory for IConnectionTransport implementations.

TransportFactory TransportFactory { get; set; }

Property Value

TransportFactory

WebSocketFactory

Optional factory for WebSocket implementations. If PuppeteerSharp.Transport is set this property will be ignored.

WebSocketFactory WebSocketFactory { get; set; }

Property Value

WebSocketFactory