Table of Contents

Class ProxyConfiguration

Namespace
WebDriverBiDi.Session
Assembly
WebDriverBiDi.dll

Object representing a proxy to be used by the browser.

[JsonConverter(typeof(DiscriminatedUnionJsonConverter<ProxyConfiguration>))]
[DiscriminatedTypeProperty("proxyType")]
[DiscriminatedDerivedType(typeof(DirectProxyConfiguration), "direct")]
[DiscriminatedDerivedType(typeof(AutoDetectProxyConfiguration), "autodetect")]
[DiscriminatedDerivedType(typeof(ManualProxyConfiguration), "manual")]
[DiscriminatedDerivedType(typeof(PacProxyConfiguration), "pac")]
[DiscriminatedDerivedType(typeof(SystemProxyConfiguration), "system")]
public class ProxyConfiguration
Inheritance
ProxyConfiguration
Derived
Inherited Members

Constructors

ProxyConfiguration(ProxyType)

Initializes a new instance of the ProxyConfiguration class.

protected ProxyConfiguration(ProxyType proxyType)

Parameters

proxyType ProxyType

The type of proxy configuration.

Properties

AdditionalData

Gets the dictionary of additional properties deserialized with this message.

[JsonExtensionData]
[JsonInclude]
public Dictionary<string, object?> AdditionalData { get; }

Property Value

Dictionary<string, object>

Remarks

An entry may not reuse the name of a property this type already serializes; doing so would write that name twice in the same JSON object, and a JSON object with a duplicate name has no defined meaning. Sending a command that contains such an entry throws WebDriverBiDiSerializationException rather than emitting the ambiguous payload. Set the typed property instead.

ProxyType

Gets the type of proxy configuration.

[JsonRequired]
[JsonPropertyName("proxyType")]
[JsonInclude]
public ProxyType ProxyType { get; }

Property Value

ProxyType