Table of Contents

Class Proxy

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

Describes proxy settings to be used with a driver instance.

public class Proxy
Inheritance
Proxy
Inherited Members

Constructors

Proxy()

Initializes a new instance of the Proxy class.

public Proxy()

Proxy(Dictionary<string, object>)

Initializes a new instance of the Proxy class with the given proxy settings.

public Proxy(Dictionary<string, object> settings)

Parameters

settings Dictionary<string, object>

A dictionary of settings to use with the proxy.

Properties

BypassProxyAddresses

Gets the semicolon delimited list of address for which to bypass the proxy.

public string BypassProxyAddresses { get; }

Property Value

string

FtpProxy

Gets or sets the value of the proxy for the FTP protocol.

public string FtpProxy { get; set; }

Property Value

string

HttpProxy

Gets or sets the value of the proxy for the HTTP protocol.

public string HttpProxy { get; set; }

Property Value

string

IsAutoDetect

Gets or sets a value indicating whether the proxy uses automatic detection.

public bool IsAutoDetect { get; set; }

Property Value

bool

Kind

Gets or sets the type of proxy.

public ProxyKind Kind { get; set; }

Property Value

ProxyKind

NoProxy

Gets or sets the value for bypass proxy addresses.

[Obsolete("Add addresses to bypass with the proxy by using the AddBypassAddress method.")]
public string NoProxy { get; set; }

Property Value

string

ProxyAutoConfigUrl

Gets or sets the URL used for proxy automatic configuration.

public string ProxyAutoConfigUrl { get; set; }

Property Value

string

SerializableProxyKind

Gets the type of proxy as a string for JSON serialization.

public string SerializableProxyKind { get; }

Property Value

string

SocksPassword

Gets or sets the value of password for the SOCKS proxy.

public string SocksPassword { get; set; }

Property Value

string

SocksProxy

Gets or sets the value of the proxy for the SOCKS protocol.

public string SocksProxy { get; set; }

Property Value

string

SocksUserName

Gets or sets the value of username for the SOCKS proxy.

public string SocksUserName { get; set; }

Property Value

string

SslProxy

Gets or sets the value of the proxy for the SSL protocol.

public string SslProxy { get; set; }

Property Value

string

Methods

AddBypassAddress(string)

Adds a single address to the list of addresses against which the proxy will not be used.

public void AddBypassAddress(string address)

Parameters

address string

The address to add.

AddBypassAddresses(IEnumerable<string>)

Adds addresses to the list of addresses against which the proxy will not be used.

public void AddBypassAddresses(IEnumerable<string> addressesToAdd)

Parameters

addressesToAdd IEnumerable<string>

An IEnumerable<T> object of arguments to add.

AddBypassAddresses(params string[])

Adds addresses to the list of addresses against which the proxy will not be used.

public void AddBypassAddresses(params string[] addressesToAdd)

Parameters

addressesToAdd string[]

An array of addresses to add.