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,org.openqa.selenium.Capabilities
@Beta public class InternetExplorerOptions extends org.openqa.selenium.remote.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
-
-
Constructor Summary
Constructors Constructor Description InternetExplorerOptions()InternetExplorerOptions(org.openqa.selenium.Capabilities source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InternetExplorerOptionsaddCommandSwitches(java.lang.String... switches)protected intamendHashCode()java.util.Map<java.lang.String,java.lang.Object>asMap()InternetExplorerOptionsdestructivelyEnsureCleanSession()Clear the Internet Explorer cache before launching the browser.InternetExplorerOptionsdisableNativeEvents()InternetExplorerOptionselementScrollTo(ElementScrollBehavior behavior)InternetExplorerOptionsenablePersistentHovering()Enable persistently sendingWM_MOUSEMOVEmessages to the IE window during a mouse hover.booleanequals(java.lang.Object arg0)java.lang.ObjectgetCapability(java.lang.String arg0)java.util.Set<java.lang.String>getCapabilityNames()org.openqa.selenium.PlatformgetPlatform()inthashCode()InternetExplorerOptionsignoreZoomSettings()InternetExplorerOptionsintroduceFlakinessByIgnoringSecurityDomains()InternetExplorerOptionsmerge(org.openqa.selenium.Capabilities extraCapabilities)InternetExplorerOptionsrequireWindowFocus()voidsetCapability(java.lang.String key, java.lang.Object value)InternetExplorerOptionstakeFullPageScreenshot()java.util.Map<java.lang.String,java.lang.Object>toJson()java.lang.StringtoString()InternetExplorerOptionsuseCreateProcessApiToLaunchIe()Force the use of the Windows CreateProcess API when launching Internet Explorer.InternetExplorerOptionsusePerProcessProxy()Use theProxydefined in otherCapabilitieson a per-process basis, not updating the system installed proxy setting.InternetExplorerOptionsuseShellWindowsApiToAttachToIe()Use the Windows ShellWindows API when attaching to Internet Explorer.InternetExplorerOptionswaitForUploadDialogUpTo(long duration, java.util.concurrent.TimeUnit unit)InternetExplorerOptionswaitForUploadDialogUpTo(java.time.Duration duration)InternetExplorerOptionswithAttachTimeout(long duration, java.util.concurrent.TimeUnit unit)InternetExplorerOptionswithAttachTimeout(java.time.Duration duration)InternetExplorerOptionswithInitialBrowserUrl(java.lang.String url)-
Methods inherited from class org.openqa.selenium.remote.AbstractDriverOptions
setAcceptInsecureCerts, setPageLoadStrategy, setProxy, setStrictFileInteractability, setUnhandledPromptBehaviour
-
Methods inherited from class org.openqa.selenium.MutableCapabilities
setCapability, setCapability, setCapability
-
-
-
-
Method Detail
-
merge
public InternetExplorerOptions merge(org.openqa.selenium.Capabilities extraCapabilities)
- Specified by:
mergein interfaceorg.openqa.selenium.Capabilities- Overrides:
mergein classorg.openqa.selenium.MutableCapabilities
-
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_MOUSEMOVEmessages 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 theProxydefined in otherCapabilitieson a per-process basis, not updating the system installed proxy setting. This is only valid when setting aProxywhere theProxy.ProxyTypeis one ofProxy.ProxyType.DIRECTProxy.ProxyType.MANUALProxy.ProxyType.SYSTEM
-
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()
-
setCapability
public void setCapability(java.lang.String key, java.lang.Object value)- Overrides:
setCapabilityin classorg.openqa.selenium.MutableCapabilities
-
getPlatform
public org.openqa.selenium.Platform getPlatform()
- Specified by:
getPlatformin interfaceorg.openqa.selenium.Capabilities
-
getCapability
public java.lang.Object getCapability(java.lang.String arg0)
- Specified by:
getCapabilityin interfaceorg.openqa.selenium.Capabilities
-
getCapabilityNames
public java.util.Set<java.lang.String> getCapabilityNames()
- Specified by:
getCapabilityNamesin interfaceorg.openqa.selenium.Capabilities
-
asMap
public java.util.Map<java.lang.String,java.lang.Object> asMap()
- Specified by:
asMapin interfaceorg.openqa.selenium.Capabilities
-
toJson
public java.util.Map<java.lang.String,java.lang.Object> toJson()
-
amendHashCode
protected int amendHashCode()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object arg0)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-