selenium.webdriver.common.proxy

The Proxy implementation.

Classes

Proxy([raw])

Proxy contains information about proxy type and necessary proxy settings.

ProxyType()

Set of possible types of proxy.

ProxyTypeFactory()

Factory for proxy types.

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

Factory for proxy types.

static make(ff_value, string)[source]
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.

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'}
AUTODETECT = {'ff_value': 4, 'string': 'AUTODETECT'}
SYSTEM = {'ff_value': 5, 'string': 'SYSTEM'}
UNSPECIFIED = {'ff_value': 6, 'string': 'UNSPECIFIED'}
classmethod load(value)[source]
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.

proxyType = {'ff_value': 6, 'string': 'UNSPECIFIED'}
autodetect = False
ftpProxy = ''
httpProxy = ''
noProxy = ''
proxyAutoconfigUrl = ''
socksProxy = ''
socksUsername = ''
socksPassword = ''
socksVersion = None
sslProxy = ''
property proxy_type

Returns proxy type as ProxyType.

property auto_detect

Returns autodetect setting.

property ftp_proxy

Returns ftp proxy setting.

property http_proxy

Returns http proxy setting.

property no_proxy

Returns noproxy setting.

property proxy_autoconfig_url

Returns proxy autoconfig url setting.

property ssl_proxy

Returns https proxy setting.

property socks_proxy

Returns socks proxy setting.

property socks_username

Returns socks proxy username setting.

property socks_password

Returns socks proxy password setting.

property socks_version

Returns socks proxy version setting.

to_capabilities()[source]