Module selenium-webdriver/proxy
code »Defines functions for configuring a webdriver proxy:
var webdriver = require('selenium-webdriver'),
proxy = require('selenium-webdriver/proxy');
var driver = new webdriver.Builder()
.withCapabilities(webdriver.Capabilities.chrome())
.setProxy(proxy.manual({http: 'host:1234'}))
.build();
Show:
Type Definitions
Functions
Manually configures the browser proxy. The following options are
supported:
ftp
: Proxy host to use for FTP requests
http
: Proxy host to use for HTTP requests
https
: Proxy host to use for HTTPS requests
bypass
: A list of hosts requests should directly connect to,
bypassing any other proxies for that request. May be specified as a
comma separated string, or a list of strings.
Behavior is undefined for FTP, HTTP, and HTTPS requests if the
corresponding key is omitted from the configuration options.
ftp
: Proxy host to use for FTP requests
http
: Proxy host to use for HTTP requests
https
: Proxy host to use for HTTPS requests
bypass
: A list of hosts requests should directly connect to,
bypassing any other proxies for that request. May be specified as a
comma separated string, or a list of strings.