selenium.webdriver.edge.options¶
Classes
|
- class selenium.webdriver.edge.options.Options[source]¶
- KEY = 'ms:edgeOptions'¶
- property use_webview: bool¶
- to_capabilities() dict [source]¶
Creates a capabilities with all the options that have been set and :Returns: A dictionary with everything
- property accept_insecure_certs: bool¶
- 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
- property arguments¶
- Returns:
A list of arguments needed for the browser
- property binary_location: str¶
- Returns:
The location of the binary, otherwise an empty string
- property browser_version: str¶
- Returns:
the version of the browser if set, otherwise None.
- property capabilities¶
- property debugger_address: str¶
- Returns:
The address of the remote devtools instance
- property default_capabilities: dict¶
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
- property experimental_options: dict¶
- Returns:
A dictionary of experimental options for chromium
- property extensions: List[str]¶
- Returns:
A list of encoded extensions that will be loaded
- property headless: bool¶
- 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.
- property page_load_strategy: str¶
- Returns:
page load strategy if set, the default is “normal”
- property platform_name: str¶
- Returns:
The name of the platform
- set_capability(name, value) None ¶
Sets a capability.
- property set_window_rect: bool¶
- Returns:
whether the remote end supports setting window size and position
- property strict_file_interactability: bool¶
- Returns:
whether session is strict about file interactability
- property timeouts: dict¶
- Returns:
Values for implicit timeout, pageLoad timeout and script timeout if set (in milliseconds)
- property unhandled_prompt_behavior: str¶
- Returns:
unhandled prompt behavior if set, the default is “dismiss and notify”