selenium.webdriver.ie.options¶
Classes
ElementScrollBehavior (*args, **kwds) |
|
Options () |
-
class
selenium.webdriver.ie.options.
ElementScrollBehavior
(*args, **kwds)[source]¶ -
BOTTOM
= 1¶
-
TOP
= 0¶
-
-
class
selenium.webdriver.ie.options.
Options
[source]¶ -
ATTACH_TO_EDGE_CHROME
= 'ie.edgechromium'¶
-
BINARY_LOCATION_ERROR
= 'Binary Location Must be a String'¶
-
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_PROCESS_MATCH
= 'ie.ignoreprocessmatch'¶
-
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'¶
-
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
¶ Gets and Sets attach_to_edge_chrome
- Get
- self.attach_to_edge_chrome
- Set
- self.attach_to_edge_chrome = value
value: bool
-
browser_attach_timeout
¶ Gets and Sets browser_attach_timeout
- Get
- self.browser_attach_timeout
- Set
- self.browser_attach_timeout = value
value: int (Timeout) in milliseconds
-
capabilities
¶
-
default_capabilities
¶ Return minimal capabilities necessary as a dictionary.
-
edge_executable_path
¶ Gets and Sets edge_executable_path
- Get
- self.edge_executable_path
- Set
- self.edge_executable_path = value
value: str
-
element_scroll_behavior
¶ Gets and Sets element_scroll_behavior
- Get
- self.element_scroll_behavior
- Set
- self.element_scroll_behavior = value
value: int either 0 - Top, 1 - Bottom
-
enable_mobile
(android_package: Optional[str, None] = None, android_activity: Optional[str, None] = None, device_serial: Optional[str, None] = 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
¶ Gets and Sets ensure_clean_session
- Get
- self.ensure_clean_session
- Set
- self.ensure_clean_session = value
value: bool
-
file_upload_dialog_timeout
¶ Gets and Sets file_upload_dialog_timeout
- Get
- self.file_upload_dialog_timeout
- Set
- self.file_upload_dialog_timeout = value
value: int (Timeout) in milliseconds
-
force_create_process_api
¶ Gets and Sets force_create_process_api
- Get
- self.force_create_process_api
- Set
- self.force_create_process_api = value
value: bool
-
force_shell_windows_api
¶ Gets and Sets force_shell_windows_api
- Get
- self.force_shell_windows_api
- Set
- self.force_shell_windows_api = value
value: bool
-
full_page_screenshot
¶ Gets and Sets full_page_screenshot
- Get
- self.full_page_screenshot
- Set
- self.full_page_screenshot = value
value: bool
-
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
¶ Gets and Sets ignore_protected_mode_settings
- Get
- self.ignore_protected_mode_settings
- Set
- self.ignore_protected_mode_settings = value
value: bool
-
ignore_zoom_level
¶ Gets and Sets ignore_zoom_level
- Get
- self.ignore_zoom_level
- Set
- self.ignore_zoom_level = value
value: bool
-
initial_browser_url
¶ Gets and Sets initial_browser_url
- Get
- self.initial_browser_url
- Set
- self.initial_browser_url = value
value: str
-
native_events
¶ Gets and Sets native_events
- Get
- self.native_events
- Set
- self.native_events = value
value: bool
-
options
¶ Returns: A dictionary of browser options.
-
persistent_hover
¶ Gets and Sets persistent_hover
- Get
- self.persistent_hover
- Set
- self.persistent_hover = value
value: bool
-
require_window_focus
¶ Gets and Sets require_window_focus
- Get
- self.require_window_focus
- Set
- self.require_window_focus = value
value: bool
-
set_capability
(name, value) → None¶ Sets a capability.
-
use_legacy_file_upload_dialog_handling
¶ Gets and Sets use_legacy_file_upload_dialog_handling
- Get
- self.use_legacy_file_upload_dialog_handling
- Set
- self.use_legacy_file_upload_dialog_handling = value
value: bool
-
use_per_process_proxy
¶ Gets and Sets use_per_process_proxy
- Get
- self.use_per_process_proxy
- Set
- self.use_per_process_proxy = value
value: bool
-