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:
java.io.Serializable
,Capabilities
public class InternetExplorerOptions extends AbstractDriverOptions<InternetExplorerOptions>
Options for configuring the use of IE. Can be used like so:InternetExplorerOptions options = new InternetExplorerOptions() .requireWindowFocus(); new InternetExplorerDriver(options);
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IE_OPTIONS
-
Constructor Summary
Constructors Constructor Description InternetExplorerOptions()
InternetExplorerOptions(Capabilities source)
-
Method Summary
-
Methods inherited from class org.openqa.selenium.remote.AbstractDriverOptions
asMap, getCapability, getCapabilityNames, setAcceptInsecureCerts, setBrowserVersion, 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 Detail
-
IE_OPTIONS
public static final java.lang.String IE_OPTIONS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InternetExplorerOptions
public InternetExplorerOptions()
-
InternetExplorerOptions
public InternetExplorerOptions(Capabilities source)
-
-
Method Detail
-
merge
public InternetExplorerOptions merge(Capabilities extraCapabilities)
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
public InternetExplorerOptions withAttachTimeout(long duration, java.util.concurrent.TimeUnit unit)
-
withAttachTimeout
public InternetExplorerOptions withAttachTimeout(java.time.Duration duration)
-
elementScrollTo
public InternetExplorerOptions elementScrollTo(ElementScrollBehavior behavior)
-
enablePersistentHovering
public InternetExplorerOptions enablePersistentHovering()
Enable persistently sendingWM_MOUSEMOVE
messages to the IE window during a mouse hover.
-
useCreateProcessApiToLaunchIe
public InternetExplorerOptions useCreateProcessApiToLaunchIe()
Force the use of the Windows CreateProcess API when launching Internet Explorer.
-
useShellWindowsApiToAttachToIe
public InternetExplorerOptions useShellWindowsApiToAttachToIe()
Use the Windows ShellWindows API when attaching to Internet Explorer.
-
destructivelyEnsureCleanSession
public InternetExplorerOptions 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
public InternetExplorerOptions addCommandSwitches(java.lang.String... switches)
-
usePerProcessProxy
public InternetExplorerOptions 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
public InternetExplorerOptions withInitialBrowserUrl(java.lang.String url)
-
requireWindowFocus
public InternetExplorerOptions requireWindowFocus()
-
waitForUploadDialogUpTo
public InternetExplorerOptions waitForUploadDialogUpTo(long duration, java.util.concurrent.TimeUnit unit)
-
waitForUploadDialogUpTo
public InternetExplorerOptions waitForUploadDialogUpTo(java.time.Duration duration)
-
introduceFlakinessByIgnoringSecurityDomains
public InternetExplorerOptions introduceFlakinessByIgnoringSecurityDomains()
-
disableNativeEvents
public InternetExplorerOptions disableNativeEvents()
-
ignoreZoomSettings
public InternetExplorerOptions ignoreZoomSettings()
-
takeFullPageScreenshot
public InternetExplorerOptions takeFullPageScreenshot()
-
useLegacyUploadDialog
public InternetExplorerOptions useLegacyUploadDialog()
-
attachToEdgeChrome
public InternetExplorerOptions attachToEdgeChrome()
-
withEdgeExecutablePath
public InternetExplorerOptions withEdgeExecutablePath(java.lang.String path)
-
setCapability
public void setCapability(java.lang.String key, java.lang.Object value)
- Overrides:
setCapability
in classMutableCapabilities
-
getExtraCapabilityNames
protected java.util.Set<java.lang.String> getExtraCapabilityNames()
- Specified by:
getExtraCapabilityNames
in classAbstractDriverOptions<InternetExplorerOptions>
-
getExtraCapability
protected java.lang.Object getExtraCapability(java.lang.String capabilityName)
- Specified by:
getExtraCapability
in classAbstractDriverOptions<InternetExplorerOptions>
-
-