selenium.webdriver.common.proxy

The Proxy implementation.

class selenium.webdriver.common.proxy.Proxy(raw=None)[source]

Proxy contains information about proxy type and necessary proxy settings.

Creates a new Proxy.

Args :
  • raw: raw proxy data. If None, default class values are used.
add_to_capabilities(capabilities)[source]

Adds proxy information as capability in specified capabilities.

Args :
  • capabilities: The capabilities to which proxy will be added.
auto_detect[source]

Returns autodetect setting.

autodetect = False
ftpProxy = ''
ftp_proxy[source]

Returns ftp proxy setting.

httpProxy = ''
http_proxy[source]

Returns http proxy setting.

noProxy = ''
no_proxy[source]

Returns noproxy setting.

proxyAutoconfigUrl = ''
proxyType = {'ff_value': 6, 'string': 'UNSPECIFIED'}
proxy_autoconfig_url[source]

Returns proxy autoconfig url setting.

proxy_type[source]

Returns proxy type as ProxyType.

socksPassword = ''
socksProxy = ''
socksUsername = ''
socks_password[source]

Returns socks proxy password setting.

socks_proxy[source]

Returns socks proxy setting.

socks_username[source]

Returns socks proxy username setting.

sslProxy = ''
ssl_proxy[source]

Returns https proxy setting.

class selenium.webdriver.common.proxy.ProxyType[source]

Set of possible types of proxy.

Each proxy type has 2 properties:
‘ff_value’ is value of Firefox profile preference, ‘string’ is id of proxy type.
AUTODETECT = {'ff_value': 4, 'string': 'AUTODETECT'}
DIRECT = {'ff_value': 0, 'string': 'DIRECT'}
MANUAL = {'ff_value': 1, 'string': 'MANUAL'}
PAC = {'ff_value': 2, 'string': 'PAC'}
RESERVED_1 = {'ff_value': 3, 'string': 'RESERVED1'}
SYSTEM = {'ff_value': 5, 'string': 'SYSTEM'}
UNSPECIFIED = {'ff_value': 6, 'string': 'UNSPECIFIED'}
classmethod load(value)[source]
class selenium.webdriver.common.proxy.ProxyTypeFactory[source]

Factory for proxy types.

static make(ff_value, string)[source]

This Page