Constructor
new Options(otheropt)
Name | Type | Attributes | Description |
---|---|---|---|
other | Capabilities | | <optional> | Another set of capabilities to initialize this instance from. |
Methods
addArguments(…args) → (non-null) {Options}
Specifies command-line switches to use when launching Internet Explorer. This is only valid when used with #forceCreateProcessApi.
Name | Type | Attributes | Description |
---|---|---|---|
args | string | | <repeatable> | The arguments to add. |
- Deprecated
- Use #addBrowserCommandSwitches instead.
A self reference.
- Type:
- Options
addBrowserCommandSwitches(…args) → (non-null) {Options}
Specifies command-line switches to use when launching Internet Explorer. This is only valid when used with #forceCreateProcessApi.
Name | Type | Attributes | Description |
---|---|---|---|
args | string | | <repeatable> | The arguments to add. |
A self reference.
- Type:
- Options
browserAttachTimeout(timeout) → (non-null) {Options}
Configures the timeout, in milliseconds, that the driver will attempt to located and attach to a newly opened instance of Internet Explorer. The default is zero, which indicates waiting indefinitely.
Name | Type | Description |
---|---|---|
timeout | number | How long to wait for IE. |
A self reference.
- Type:
- Options
enableElementCacheCleanup(enable) → (non-null) {Options}
Configures whether the driver should attempt to remove obsolete WebElements from its internal cache on page navigation (true by default). Disabling this option will cause the driver to run with a larger memory footprint.
Name | Type | Description |
---|---|---|
enable | boolean | Whether to enable element reference cleanup. |
A self reference.
- Type:
- Options
enablePersistentHover(enable) → (non-null) {Options}
Configures whether to enable persistent mouse hovering (true by default). Persistent hovering is achieved by continuously firing mouse over events at the last location the mouse cursor has been moved to.
Name | Type | Description |
---|---|---|
enable | boolean | Whether to enable persistent hovering. |
A self reference.
- Type:
- Options
ensureCleanSession(cleanSession) → (non-null) {Options}
Configures whether to clear the cache, cookies, history, and saved form data before starting the browser. Using this capability will clear session data for all running instances of Internet Explorer, including those started manually.
Name | Type | Description |
---|---|---|
cleanSession | boolean | Whether to clear all session data on startup. |
A self reference.
- Type:
- Options
fileUploadDialogTimeout(timeout) → (non-null) {Options}
The options File Upload Dialog Timeout in milliseconds
Name | Type | Description |
---|---|---|
timeout | number | How long to wait for IE. |
A self reference.
- Type:
- Options
forceCreateProcessApi(force) → (non-null) {Options}
Configures whether to launch Internet Explorer using the CreateProcess API. If this option is not specified, IE is launched using IELaunchURL, if available. For IE 8 and above, this option requires the TabProcGrowth registry value to be set to 0.
Name | Type | Description |
---|---|---|
force | boolean | Whether to use the CreateProcess API. |
A self reference.
- Type:
- Options
ignoreZoomSetting(ignore) → (non-null) {Options}
Indicates whether to skip the check that the browser's zoom level is set to 100%.
Name | Type | Description |
---|---|---|
ignore | boolean | Whether to ignore the browser's zoom level settings. |
A self reference.
- Type:
- Options
initialBrowserUrl(url) → (non-null) {Options}
Sets the initial URL loaded when IE starts. This is intended to be used with #introduceFlakinessByIgnoringProtectedModeSettings to allow the user to initialize IE in the proper Protected Mode zone. Setting this option may cause browser instability or flaky and unresponsive code. Only "best effort" support is provided when using this option.
Name | Type | Description |
---|---|---|
url | string | The initial browser URL. |
A self reference.
- Type:
- Options
introduceFlakinessByIgnoringProtectedModeSettings(ignoreSettings) → (non-null) {Options}
Whether to disable the protected mode settings check when the session is created. Disabling this setting may lead to significant instability as the browser may become unresponsive/hang. Only "best effort" support is provided when using this capability.
For more information, refer to the IEDriver's required system configuration.
Name | Type | Description |
---|---|---|
ignoreSettings | boolean | Whether to ignore protected mode settings. |
A self reference.
- Type:
- Options
requireWindowFocus(require) → (non-null) {Options}
Configures whether to require the IE window to have input focus before performing any user interactions (i.e. mouse or keyboard events). This option is disabled by default, but delivers much more accurate interaction events when enabled.
Name | Type | Description |
---|---|---|
require | boolean | Whether to require window focus. |
A self reference.
- Type:
- Options
setEdgeChromium(attachEdgeChromium) → (non-null) {Options}
Sets the IEDriver to drive Chromium-based Edge in Internet Explorer mode.
Name | Type | Description |
---|---|---|
attachEdgeChromium | boolean | Whether to run in Chromium-based-Edge in IE mode |
A self reference.
- Type:
- Options
setEdgePath(path) → (non-null) {Options}
Sets the path of the EdgeChromium driver.
Name | Type | Description |
---|---|---|
path | string | The EdgeChromium driver path. |
A self reference.
- Type:
- Options
setExtractPath(path) → (non-null) {Options}
Sets the path of the temporary data directory to use.
Name | Type | Description |
---|---|---|
path | string | The log file path. |
A self reference.
- Type:
- Options
setHost(host) → (non-null) {Options}
Sets the IP address of the driver's host adapter.
Name | Type | Description |
---|---|---|
host | string | The IP address to use. |
A self reference.
- Type:
- Options
setLogFile(file) → (non-null) {Options}
Sets the path to the log file the driver should log to.
Name | Type | Description |
---|---|---|
file | string | The log file path. |
A self reference.
- Type:
- Options
setLogLevel(level) → (non-null) {Options}
Sets the IEDriverServer's logging level.
Name | Type | Description |
---|---|---|
level | Level | The logging level. |
A self reference.
- Type:
- Options
setScrollBehavior(behavior) → (non-null) {Options}
Sets how elements should be scrolled into view for interaction.
Name | Type | Description |
---|---|---|
behavior | number | The desired scroll behavior: either 0 to align with the top of the viewport or 1 to align with the bottom. |
A self reference.
- Type:
- Options
silent(silent) → (non-null) {Options}
Sets whether the driver should start in silent mode.
Name | Type | Description |
---|---|---|
silent | boolean | Whether to run in silent mode. |
A self reference.
- Type:
- Options
usePerProcessProxy(enable) → (non-null) {Options}
Configures whether proxies should be configured on a per-process basis. If not set, setting a proxy will configure the system proxy. The default behavior is to use the system proxy.
Name | Type | Description |
---|---|---|
enable | boolean | Whether to enable per-process proxy settings. |
A self reference.
- Type:
- Options