ProxySettings method

Class: ProxySettingsPlatform: Selenium 3Language: Java 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


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

ProxySettings proxySettings = new ProxySettings(uri, port);

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

ProxySettings proxySettings = new ProxySettings(uri);

Parameters

uri
Type:String
The proxy's server URI.
port
Type:int
The proxy's port (default 80).
username
Type:String
The username to be sent to the proxy (default none).
password
Type:String
The password to be sent to the proxy (default none).

Return value

Type: ProxySettings