ProxySettings method

Class: ProxySettingsPlatform: Selenium 4Language: JavaScript SDK:

This is the constructor for the ProxySettings class.

To initiate the use of a proxy server, create a ProxySettings object with this constructor and then pass the object to the setProxy method.

Syntax


let proxySettings = new ProxySettings(uri, username, password);

let proxySettings = new ProxySettings(uri, username);

let proxySettings = new ProxySettings(uri);

Parameters

uri
Type:string|boolean
The proxy's server URI.
username
Type:string [Optional ]
The username to be sent to the proxy (default none).
password
Type:string [Optional ]
The password to be sent to the proxy (default none).

Return value

Type: <a class ='link' href='/Content/api/eyes-sdk/index-gen/class-proxysettings-selenium4-javascript.htm'>ProxySettings</a>