selenium.webdriver.edge.options

Classes

Options()
class selenium.webdriver.edge.options.Options[source]
KEY = 'ms:edgeOptions'
accept_insecure_certs
Returns:whether the session accepts insecure certificates
add_argument(argument)

Adds an argument to the list.

Args:
  • Sets the arguments
add_encoded_extension(extension: str) → None

Adds Base64 encoded string with extension data to a list that will be used to extract it to the ChromeDriver.

Args:
  • extension: Base64 encoded string with extension data
add_experimental_option(name: str, value: Union[str, int, dict, List[str]]) → None

Adds an experimental option which is passed to chromium.

Args:name: The experimental option name. value: The option value.
add_extension(extension: str) → None

Adds the path to the extension to a list that will be used to extract it to the ChromeDriver.

Args:
  • extension: path to the *.crx file
arguments
Returns:A list of arguments needed for the browser
binary_location
Returns:The location of the binary, otherwise an empty string
browser_version
Returns:the version of the browser if set, otherwise None.
capabilities
debugger_address
Returns:The address of the remote devtools instance
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
experimental_options
Returns:A dictionary of experimental options for chromium
extensions
Returns:A list of encoded extensions that will be loaded
headless
Returns:True if the headless argument is set, else False
ignore_local_proxy_environment_variables() → None

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)
to_capabilities() → dict[source]

Creates a capabilities with all the options that have been set and :Returns: A dictionary with everything

unhandled_prompt_behavior
Returns:unhandled prompt behavior if set, the default is “dismiss and notify”
use_webview