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.
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
¶ Returns autodetect setting.
-
autodetect
= False¶
-
ftpProxy
= ''¶
-
ftp_proxy
¶ Returns ftp proxy setting.
-
httpProxy
= ''¶
-
http_proxy
¶ Returns http proxy setting.
-
noProxy
= ''¶
-
no_proxy
¶ Returns noproxy setting.
-
proxyAutoconfigUrl
= ''¶
-
proxyType
= {'ff_value': 6, 'string': 'UNSPECIFIED'}¶
-
proxy_autoconfig_url
¶ Returns proxy autoconfig url setting.
-
proxy_type
¶ Returns proxy type as ProxyType.
-
socksPassword
= ''¶
-
socksProxy
= ''¶
-
socksUsername
= ''¶
-
socksVersion
= None¶
-
socks_password
¶ Returns socks proxy password setting.
-
socks_proxy
¶ Returns socks proxy setting.
-
socks_username
¶ Returns socks proxy username setting.
-
socks_version
¶ Returns socks proxy version setting.
-
sslProxy
= ''¶
-
ssl_proxy
¶ 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'}¶
-