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 = {'string': 'UNSPECIFIED', 'ff_value': 6}
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 = {'string': 'AUTODETECT', 'ff_value': 4}
DIRECT = {'string': 'DIRECT', 'ff_value': 0}
MANUAL = {'string': 'MANUAL', 'ff_value': 1}
PAC = {'string': 'PAC', 'ff_value': 2}
RESERVED_1 = {'string': 'RESERVED1', 'ff_value': 3}
SYSTEM = {'string': 'SYSTEM', 'ff_value': 5}
UNSPECIFIED = {'string': 'UNSPECIFIED', 'ff_value': 6}
classmethod load(value)[source]
class selenium.webdriver.common.proxy.ProxyTypeFactory[source]

Factory for proxy types.

static make(ff_value, string)[source]

This Page