selenium.webdriver.ie.options

Classes

ElementScrollBehavior(value[, names, ...])

Options()

class selenium.webdriver.ie.options.ElementScrollBehavior(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]
TOP = 0
BOTTOM = 1
class selenium.webdriver.ie.options.Options[source]
KEY = 'se:ieOptions'
SWITCHES = 'ie.browserCommandLineSwitches'
BROWSER_ATTACH_TIMEOUT = 'browserAttachTimeout'
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'
NATIVE_EVENTS = 'nativeEvents'
PERSISTENT_HOVER = 'enablePersistentHover'
REQUIRE_WINDOW_FOCUS = 'requireWindowFocus'
USE_PER_PROCESS_PROXY = 'ie.usePerProcessProxy'
USE_LEGACY_FILE_UPLOAD_DIALOG_HANDLING = 'ie.useLegacyFileUploadDialogHandling'
ATTACH_TO_EDGE_CHROME = 'ie.edgechromium'
EDGE_EXECUTABLE_PATH = 'ie.edgepath'
property options: dict
Returns:

A dictionary of browser options

property browser_attach_timeout: int
Returns:

The options Browser Attach Timeout in milliseconds

property element_scroll_behavior: ElementScrollBehavior
Returns:

The options Element Scroll Behavior value

property ensure_clean_session: bool
Returns:

The options Ensure Clean Session value

property file_upload_dialog_timeout: int
Returns:

The options File Upload Dialog Timeout in milliseconds

property force_create_process_api: bool
Returns:

The options Force Create Process Api value

property force_shell_windows_api: bool
Returns:

The options Force Shell Windows Api value

property full_page_screenshot: bool
Returns:

The options Full Page Screenshot value

property ignore_protected_mode_settings: bool
Returns:

The options Ignore Protected Mode Settings value

property ignore_zoom_level: bool
Returns:

The options Ignore Zoom Level value

property initial_browser_url: str
Returns:

The options Initial Browser Url 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 native_events: bool
Returns:

The options Native Events value

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

property proxy: Proxy
Returns:

Proxy if set, otherwise None.

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 persistent_hover: bool
Returns:

The options Persistent Hover value

property require_window_focus
Returns:

The options Require Window Focus value

property use_per_process_proxy: bool
Returns:

The options User Per Process Proxy value

property use_legacy_file_upload_dialog_handling: bool
Returns:

The options Use Legacy File Upload Dialog Handling value

property attach_to_edge_chrome: bool
Returns:

The options Attach to Edge Chrome value

property edge_executable_path: str
Returns:

The options Edge Executable Path value

property additional_options: dict
Returns:

The additional options

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

to_capabilities() dict[source]

Marshals the IE options to the correct object.

property default_capabilities: dict

Return minimal capabilities necessary as a dictionary.