setProxy method

Class: EyesPlatform: PlaywrightLanguage: JavaScript SDK:

Use this method to configure Eyes so that it will interact with the Eyes server via a proxy.

By default, the SDK interacts directly with the Eyes server. If necessary, you can define a proxy server so that the SDK will interact with the proxy server, and the proxy server will relay the interaction to the Eyes server.

Syntax

eyes.setProxy(proxy);
eyes.setProxy(url, username, password, isHttpOnly);
eyes.setProxy(url, username, password);
eyes.setProxy(url, username);
eyes.setProxy(url);
eyes.setProxy(isEnabled);

Parameters

proxy
Type:ProxySettingsPlain
ProxySettingsPlain
url
Type:string
The proxy URL to be used by the serverConnector. If it has a value of then no proxy is set.
username
Type:string [Optional ]
The string to pass as the username.
password
Type:string [Optional ]
The string to pass as the password.
isHttpOnly
Type:boolean [Optional ]
A value of true specifies that the SDK should communicate with the server using an http tunnel. Use this if your http proxy blocks https communication.
isEnabled
Type:false
If this parameter is provided, then it must have a value of false, and it means that use of the proxy is disabled.

Return value

Type: void