selenium.webdriver.safari.options¶
Classes
|
|
|
- class selenium.webdriver.safari.options.Options[source]¶
- KEY = 'safari.options'¶
- AUTOMATIC_INSPECTION = 'safari:automaticInspection'¶
- AUTOMATIC_PROFILING = 'safari:automaticProfiling'¶
- SAFARI_TECH_PREVIEW = 'Safari Technology Preview'¶
- property binary_location: str¶
- Returns:
The location of the browser binary otherwise an empty string
- property default_capabilities: Dict[str, str]¶
Return minimal capabilities necessary as a dictionary.
- property automatic_inspection: bool¶
- Returns:
The option Automatic Inspection value
- 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
- property arguments¶
- Returns:
A list of arguments needed for the browser
- property browser_version: str¶
- Returns:
the version of the browser if set, otherwise None.
- property capabilities¶
- 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 ¶
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”
- property automatic_profiling: bool¶
- Returns:
The options Automatic Profiling value
- property use_technology_preview: bool¶
- Returns:
whether BROWSER_NAME is equal to Safari Technology Preview