selenium.webdriver.common.options¶
Classes
ArgOptions () |
|
BaseOptions () |
Base class for individual browser options. |
-
class
selenium.webdriver.common.options.
ArgOptions
[source]¶ -
accept_insecure_certs
¶ Returns: whether the session accepts insecure certificates
-
arguments
¶ Returns: A list of arguments needed for the browser
-
browser_version
¶ Returns: the version of the browser if set, otherwise None.
-
capabilities
¶
-
default_capabilities
¶ Return minimal capabilities necessary as a dictionary.
-
enable_mobile
(android_package: Optional[str] = None, android_activity: Optional[str] = None, device_serial: Optional[str] = None) → None¶ Enables mobile browser use for browsers that support it.
Args: android_activity: The name of the android package to start
-
ignore_local_proxy_environment_variables
() → None[source]¶ By calling this you will ignore HTTP_PROXY and HTTPS_PROXY from being picked up and used.
-
page_load_strategy
¶ Returns: page load strategy if set, the default is “normal”
-
platform_name
¶ Returns: The name of the platform
-
proxy
¶ Returns: Proxy if set, otherwise None.
-
set_capability
(name, value) → None¶ Sets a capability.
-
set_window_rect
¶ Returns: whether the remote end supports setting window size and position
-
strict_file_interactability
¶ Returns: whether session is strict about file interactability
-
timeouts
¶ Returns: Values for implicit timeout, pageLoad timeout and script timeout if set (in milliseconds)
-
unhandled_prompt_behavior
¶ Returns: unhandled prompt behavior if set, the default is “dismiss and notify”
-
-
class
selenium.webdriver.common.options.
BaseOptions
[source]¶ Base class for individual browser options.
-
accept_insecure_certs
¶ Returns: whether the session accepts insecure certificates
-
browser_version
¶ Returns: the version of the browser if set, otherwise None.
-
capabilities
¶
-
default_capabilities
¶ Return minimal capabilities necessary as a dictionary.
-
enable_mobile
(android_package: Optional[str] = None, android_activity: Optional[str] = None, device_serial: Optional[str] = None) → None[source]¶ Enables mobile browser use for browsers that support it.
Args: android_activity: The name of the android package to start
-
page_load_strategy
¶ Returns: page load strategy if set, the default is “normal”
-
platform_name
¶ Returns: The name of the platform
-
proxy
¶ Returns: Proxy if set, otherwise None.
-
set_window_rect
¶ Returns: whether the remote end supports setting window size and position
-
strict_file_interactability
¶ Returns: whether session is strict about file interactability
-
timeouts
¶ Returns: Values for implicit timeout, pageLoad timeout and script timeout if set (in milliseconds)
-
unhandled_prompt_behavior
¶ Returns: unhandled prompt behavior if set, the default is “dismiss and notify”
-