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
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
ProtocolTimeout
Timeout setting for individual protocol (CDP) calls. Defaults to 180_000.
int ProtocolTimeout { get; set; }
Property Value
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
TargetFilter
Callback to decide if Puppeteer should connect to a given target or not.
Func<Target, bool> TargetFilter { get; set; }
Property Value
TransportFactory
Optional factory for IConnectionTransport implementations.
TransportFactory TransportFactory { get; set; }
Property Value
WebSocketFactory
Optional factory for WebSocket implementations. If PuppeteerSharp.Transport is set this property will be ignored.
WebSocketFactory WebSocketFactory { get; set; }