selenium.webdriver.ie.options¶
Classes
ElementScrollBehavior |
An enumeration. |
Options () |
-
class
selenium.webdriver.ie.options.
ElementScrollBehavior
[source]¶ An enumeration.
-
BOTTOM
= 1¶
-
TOP
= 0¶
-
-
class
selenium.webdriver.ie.options.
Options
[source]¶ -
ATTACH_TO_EDGE_CHROME
= 'ie.edgechromium'¶
-
BROWSER_ATTACH_TIMEOUT
= 'browserAttachTimeout'¶
-
EDGE_EXECUTABLE_PATH
= 'ie.edgepath'¶
-
ELEMENT_SCROLL_BEHAVIOR
= 'elementScrollBehavior'¶
-
ENSURE_CLEAN_SESSION
= 'ie.ensureCleanSession'¶
-
FILE_UPLOAD_DIALOG_TIMEOUT
= 'ie.fileUploadDialogTimeout'¶
-
FORCE_CREATE_PROCESS_API
= 'ie.forceCreateProcessApi'¶
-
FORCE_SHELL_WINDOWS_API
= 'ie.forceShellWindowsApi'¶
-
FULL_PAGE_SCREENSHOT
= 'ie.enableFullPageScreenshot'¶
-
IGNORE_PROTECTED_MODE_SETTINGS
= 'ignoreProtectedModeSettings'¶
-
IGNORE_ZOOM_LEVEL
= 'ignoreZoomSetting'¶
-
INITIAL_BROWSER_URL
= 'initialBrowserUrl'¶
-
KEY
= 'se:ieOptions'¶
-
NATIVE_EVENTS
= 'nativeEvents'¶
-
PERSISTENT_HOVER
= 'enablePersistentHover'¶
-
REQUIRE_WINDOW_FOCUS
= 'requireWindowFocus'¶
-
SWITCHES
= 'ie.browserCommandLineSwitches'¶
-
USE_LEGACY_FILE_UPLOAD_DIALOG_HANDLING
= 'ie.useLegacyFileUploadDialogHandling'¶
-
USE_PER_PROCESS_PROXY
= 'ie.usePerProcessProxy'¶
-
accept_insecure_certs
¶ Returns: whether the session accepts insecure certificates
-
add_additional_option
(name: str, value)[source]¶ Adds an additional option not yet added as a safe option for IE.
Args: - name: name of the option to add
- value: value of the option to add
-
add_argument
(argument)¶ Adds an argument to the list.
Args: - Sets the arguments
-
additional_options
¶ Returns: The additional options
-
arguments
¶ Returns: A list of arguments needed for the browser
-
attach_to_edge_chrome
¶ Returns: The options Attach to Edge Chrome value
-
browser_attach_timeout
¶ Returns: The options Browser Attach Timeout in milliseconds
-
browser_version
¶ Returns: the version of the browser if set, otherwise None.
-
capabilities
¶
-
default_capabilities
¶ Return minimal capabilities necessary as a dictionary.
-
edge_executable_path
¶ Returns: The options Edge Executable Path value
-
element_scroll_behavior
¶ Returns: The options Element Scroll Behavior value
-
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
-
ensure_clean_session
¶ Returns: The options Ensure Clean Session value
-
file_upload_dialog_timeout
¶ Returns: The options File Upload Dialog Timeout in milliseconds
-
force_create_process_api
¶ Returns: The options Force Create Process Api value
-
force_shell_windows_api
¶ Returns: The options Force Shell Windows Api value
-
full_page_screenshot
¶ Returns: The options Full Page Screenshot value
-
ignore_local_proxy_environment_variables
() → None¶ By calling this you will ignore HTTP_PROXY and HTTPS_PROXY from being picked up and used.
-
ignore_protected_mode_settings
¶ Returns: The options Ignore Protected Mode Settings value
-
ignore_zoom_level
¶ Returns: The options Ignore Zoom Level value
-
initial_browser_url
¶ Returns: The options Initial Browser Url value
-
native_events
¶ Returns: The options Native Events value
-
options
¶ Returns: A dictionary of browser options
-
page_load_strategy
¶ Returns: page load strategy if set, the default is “normal”
-
persistent_hover
¶ Returns: The options Persistent Hover value
-
platform_name
¶ Returns: The name of the platform
-
proxy
¶ Returns: Proxy if set, otherwise None.
-
require_window_focus
¶ Returns: The options Require Window Focus value
-
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”
-
use_legacy_file_upload_dialog_handling
¶ Returns: The options Use Legacy File Upload Dialog Handling value
-
use_per_process_proxy
¶ Returns: The options User Per Process Proxy value
-