InternetExplorerOptions ClassWebDriver
Class to manage options specific to InternetExplorerDriver
Inheritance Hierarchy

SystemObject
  OpenQA.SeleniumDriverOptions
    OpenQA.Selenium.IEInternetExplorerOptions

Namespace: OpenQA.Selenium.IE
Assembly: WebDriver (in WebDriver.dll) Version: 3.1.0
Syntax

public class InternetExplorerOptions : DriverOptions

The InternetExplorerOptions type exposes the following members.

Constructors

  NameDescription
Public methodInternetExplorerOptions
Initializes a new instance of the InternetExplorerOptions class
Top
Properties

  NameDescription
Public propertyBrowserAttachTimeout
Gets or sets the amount of time the driver will attempt to look for a newly launched instance of Internet Explorer.
Public propertyBrowserCommandLineArguments
Gets or sets the command line arguments used in launching Internet Explorer when the Windows CreateProcess API is used. This property only has an effect when the ForceCreateProcessApi is .
Public propertyElementScrollBehavior
Gets or sets the value for describing how elements are scrolled into view in the IE driver. Defaults to scrolling the element to the top of the viewport.
Public propertyEnableFullPageScreenshot
Gets or sets a value indicating whether to enable full-page screenshots for the IE driver. Defaults to .
Public propertyEnableNativeEvents
Gets or sets a value indicating whether to use native events in interacting with elements.
Public propertyEnablePersistentHover
Gets or sets a value indicating whether to enable persistently sending WM_MOUSEMOVE messages to the IE window during a mouse hover.
Public propertyEnsureCleanSession
Gets or sets a value indicating whether to clear the Internet Explorer cache before launching the browser. When set to , clears the system cache for all instances of Internet Explorer, even those already running when the driven instance is launched. Defaults to .
Public propertyFileUploadDialogTimeout
Gets or sets the amount of time the driver will attempt to look for the file selection dialog when attempting to upload a file.
Public propertyForceCreateProcessApi
Gets or sets a value indicating whether to force the use of the Windows CreateProcess API when launching Internet Explorer. The default value is .
Public propertyForceShellWindowsApi
Gets or sets a value indicating whether to force the use of the Windows ShellWindows API when attaching to Internet Explorer. The default value is .
Public propertyIgnoreZoomLevel
Gets or sets a value indicating whether to ignore the zoom level of Internet Explorer .
Public propertyInitialBrowserUrl
Gets or sets the initial URL displayed when IE is launched. If not set, the browser launches with the internal startup page for the WebDriver server.
Public propertyIntroduceInstabilityByIgnoringProtectedModeSettings
Gets or sets a value indicating whether to ignore the settings of the Internet Explorer Protected Mode.
Public propertyPageLoadStrategy
Gets or sets the value for describing how the browser is to wait for pages to load in the IE driver. Defaults to Default.
Public propertyProxy
Gets or sets the Proxy to be used with Internet Explorer. By default, will install the specified proxy to be the system proxy, used by all instances of Internet Explorer. To change this default behavior, change the UsePerProcessProxy property.
Public propertyRequireWindowFocus
Gets or sets a value indicating whether to require the browser window to have focus before interacting with elements.
Public propertyUnexpectedAlertBehavior
Gets or sets the value for describing how unexpected alerts are to be handled in the IE driver. Defaults to Default.
Public propertyUsePerProcessProxy
Gets or sets a value indicating whether to use the supplied Proxy settings on a per-process basis, not updating the system installed proxy setting. This property is only valid when setting a Proxy, where the Kind property is either Direct, System, or Manual, and is otherwise ignored. Defaults to .
Public propertyValidateCookieDocumentType Obsolete.
Gets or sets a value indicating whether to validate the document type of the loaded document when setting cookies.
Top
Methods

  NameDescription
Public methodAddAdditionalCapability
Provides a means to add additional capabilities not yet added as type safe options for the Internet Explorer driver.
(Overrides DriverOptionsAddAdditionalCapability(String, Object).)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodGenerateLoggingPreferencesDictionary
Generates the logging preferences dictionary for transmission as a desired capability.
(Inherited from DriverOptions.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetLoggingPreference
Sets the logging preferences for this driver.
(Inherited from DriverOptions.)
Public methodToCapabilities
Returns DesiredCapabilities for IE with these options included as capabilities. This copies the options. Further changes will not be reflected in the returned capabilities.
(Overrides DriverOptionsToCapabilities.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Examples

InternetExplorerOptions options = new InternetExplorerOptions();
options.IntroduceInstabilityByIgnoringProtectedModeSettings = true;

For use with InternetExplorerDriver:

InternetExplorerDriver driver = new InternetExplorerDriver(options);

For use with RemoteWebDriver:

RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:4444/wd/hub"), options.ToCapabilities());
See Also

Reference