Package org.openqa.selenium.ie
Class InternetExplorerOptions
java.lang.Object
org.openqa.selenium.MutableCapabilities
org.openqa.selenium.remote.AbstractDriverOptions<InternetExplorerOptions>
org.openqa.selenium.ie.InternetExplorerOptions
- All Implemented Interfaces:
Serializable
,Capabilities
Options for configuring the use of IE. Can be used like so:
InternetExplorerOptions options = new InternetExplorerOptions() .requireWindowFocus(); new InternetExplorerDriver(options);
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCommandSwitches
(String... switches) Clear the Internet Explorer cache before launching the browser.Deprecated.Non W3C compliantelementScrollTo
(ElementScrollBehavior behavior) Enable persistently sendingWM_MOUSEMOVE
messages to the IE window during a mouse hover.protected Object
getExtraCapability
(String capabilityName) merge
(Capabilities extraCapabilities) Merge twoCapabilities
together and return the union of the two as a newCapabilities
instance.void
setCapability
(String key, Object value) Force the use of the Windows CreateProcess API when launching Internet Explorer.Use theProxy
defined in otherCapabilities
on a per-process basis, not updating the system installed proxy setting.Use the Windows ShellWindows API when attaching to Internet Explorer.waitForUploadDialogUpTo
(long duration, TimeUnit unit) waitForUploadDialogUpTo
(Duration duration) withAttachTimeout
(long duration, TimeUnit unit) withAttachTimeout
(Duration duration) withEdgeExecutablePath
(String path) Methods inherited from class org.openqa.selenium.remote.AbstractDriverOptions
asMap, getCapability, getCapabilityNames, setAcceptInsecureCerts, setBrowserVersion, setEnableDownloads, setImplicitWaitTimeout, setPageLoadStrategy, setPageLoadTimeout, setPlatformName, setProxy, setScriptTimeout, setStrictFileInteractability, setUnhandledPromptBehaviour
Methods inherited from class org.openqa.selenium.MutableCapabilities
equals, hashCode, setCapability, setCapability, setCapability, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.openqa.selenium.Capabilities
getBrowserName, getBrowserVersion, getPlatformName, is
-
Field Details
-
IE_OPTIONS
- See Also:
-
-
Constructor Details
-
InternetExplorerOptions
public InternetExplorerOptions() -
InternetExplorerOptions
-
-
Method Details
-
merge
Description copied from class:MutableCapabilities
Merge twoCapabilities
together and return the union of the two as a newCapabilities
instance. Capabilities fromother
will override those inthis
.- Specified by:
merge
in interfaceCapabilities
- Overrides:
merge
in classMutableCapabilities
-
withAttachTimeout
-
withAttachTimeout
-
elementScrollTo
-
enablePersistentHovering
Enable persistently sendingWM_MOUSEMOVE
messages to the IE window during a mouse hover. -
useCreateProcessApiToLaunchIe
Force the use of the Windows CreateProcess API when launching Internet Explorer. -
useShellWindowsApiToAttachToIe
Use the Windows ShellWindows API when attaching to Internet Explorer. -
destructivelyEnsureCleanSession
Clear the Internet Explorer cache before launching the browser. When set clears the system cache for all instances of Internet Explorer, even those already running when the driven instance is launched. -
addCommandSwitches
-
usePerProcessProxy
Use theProxy
defined in otherCapabilities
on a per-process basis, not updating the system installed proxy setting. This is only valid when setting aProxy
where theProxy.ProxyType
is one of -
withInitialBrowserUrl
-
requireWindowFocus
-
waitForUploadDialogUpTo
-
waitForUploadDialogUpTo
-
introduceFlakinessByIgnoringSecurityDomains
-
disableNativeEvents
Deprecated.Non W3C compliantMethod that defines to use whether to use native or javascript events during operations. -
ignoreZoomSettings
-
takeFullPageScreenshot
-
useLegacyUploadDialog
-
attachToEdgeChrome
-
ignoreProcessMatch
-
withEdgeExecutablePath
-
setCapability
- Overrides:
setCapability
in classMutableCapabilities
-
getExtraCapabilityNames
- Specified by:
getExtraCapabilityNames
in classAbstractDriverOptions<InternetExplorerOptions>
-
getExtraCapability
- Specified by:
getExtraCapability
in classAbstractDriverOptions<InternetExplorerOptions>
-