webdriver.common.proxy

The Proxy implementation.

Module Contents

Classes

ProxyTypeFactory() Factory for proxy types.
ProxyType() Set of possible types of proxy.
Proxy(self,raw=None) Proxy contains information about proxy type and necessary proxy settings.
class ProxyTypeFactory

Factory for proxy types.

make(string)
class ProxyType

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.
load(value)
class Proxy(raw=None)

Proxy contains information about proxy type and necessary proxy settings.

__init__(raw=None)

Creates a new Proxy.

Args:
  • raw: raw proxy data. If None, default class values are used.
proxy_type()

Returns proxy type as ProxyType.

proxy_type(value)

Sets proxy type.

Args:
  • value: The proxy type.
auto_detect()

Returns autodetect setting.

auto_detect(value)

Sets autodetect setting.

Args:
  • value: The autodetect value.
ftp_proxy()

Returns ftp proxy setting.

ftp_proxy(value)

Sets ftp proxy setting.

Args:
  • value: The ftp proxy value.
http_proxy()

Returns http proxy setting.

http_proxy(value)

Sets http proxy setting.

Args:
  • value: The http proxy value.
no_proxy()

Returns noproxy setting.

no_proxy(value)

Sets noproxy setting.

Args:
  • value: The noproxy value.
proxy_autoconfig_url()

Returns proxy autoconfig url setting.

proxy_autoconfig_url(value)

Sets proxy autoconfig url setting.

Args:
  • value: The proxy autoconfig url value.
ssl_proxy()

Returns https proxy setting.

ssl_proxy(value)

Sets https proxy setting.

Args:
  • value: The https proxy value.
socks_proxy()

Returns socks proxy setting.

socks_proxy(value)

Sets socks proxy setting.

Args:
  • value: The socks proxy value.
socks_username()

Returns socks proxy username setting.

socks_username(value)

Sets socks proxy username setting.

Args:
  • value: The socks proxy username value.
socks_password()

Returns socks proxy password setting.

socks_password(value)

Sets socks proxy password setting.

Args:
  • value: The socks proxy password value.
_verify_proxy_type_compatibility(compatibleProxy)
add_to_capabilities(capabilities)

Adds proxy information as capability in specified capabilities.

Args:
  • capabilities: The capabilities to which proxy will be added.