Table of Contents

Class BrowserTypeConnectOptions

Namespace
Microsoft.Playwright
Assembly
Microsoft.Playwright.dll
public class BrowserTypeConnectOptions
Inheritance
BrowserTypeConnectOptions
Inherited Members

Constructors

BrowserTypeConnectOptions()

public BrowserTypeConnectOptions()

BrowserTypeConnectOptions(BrowserTypeConnectOptions)

public BrowserTypeConnectOptions(BrowserTypeConnectOptions clone)

Parameters

clone BrowserTypeConnectOptions

Properties

ExposeNetwork

This option exposes network available on the connecting client to the browser being connected to. Consists of a list of rules separated by comma.

Available rules:

Some common examples:

[JsonPropertyName("exposeNetwork")]
public string? ExposeNetwork { get; set; }

Property Value

string

Headers

Additional HTTP headers to be sent with web socket connect request. Optional.

[JsonPropertyName("headers")]
public IEnumerable<KeyValuePair<string, string>>? Headers { get; set; }

Property Value

IEnumerable<KeyValuePair<string, string>>

SlowMo

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

[JsonPropertyName("slowMo")]
public float? SlowMo { get; set; }

Property Value

float?

Timeout

Maximum time in milliseconds to wait for the connection to be established. Defaults to 0 (no timeout).

[JsonPropertyName("timeout")]
public float? Timeout { get; set; }

Property Value

float?