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:
org.openqa.selenium.Capabilities
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);
-
-
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 InternetExplorerOptions
addCommandSwitches(java.lang.String... switches)
InternetExplorerOptions
destructivelyEnsureCleanSession()
Clear the Internet Explorer cache before launching the browser.InternetExplorerOptions
disableNativeEvents()
InternetExplorerOptions
elementScrollTo(ElementScrollBehavior behavior)
InternetExplorerOptions
enablePersistentHovering()
Enable persistently sendingWM_MOUSEMOVE
messages to the IE window during a mouse hover.protected java.lang.Object
getExtraCapability(java.lang.String capabilityName)
protected java.util.Set<java.lang.String>
getExtraCapabilityNames()
InternetExplorerOptions
ignoreZoomSettings()
InternetExplorerOptions
introduceFlakinessByIgnoringSecurityDomains()
InternetExplorerOptions
merge(org.openqa.selenium.Capabilities extraCapabilities)
InternetExplorerOptions
requireWindowFocus()
void
setCapability(java.lang.String key, java.lang.Object value)
InternetExplorerOptions
takeFullPageScreenshot()
InternetExplorerOptions
useCreateProcessApiToLaunchIe()
Force the use of the Windows CreateProcess API when launching Internet Explorer.InternetExplorerOptions
usePerProcessProxy()
Use theProxy
defined in otherCapabilities
on a per-process basis, not updating the system installed proxy setting.InternetExplorerOptions
useShellWindowsApiToAttachToIe()
Use the Windows ShellWindows API when attaching to Internet Explorer.InternetExplorerOptions
waitForUploadDialogUpTo(long duration, java.util.concurrent.TimeUnit unit)
InternetExplorerOptions
waitForUploadDialogUpTo(java.time.Duration duration)
InternetExplorerOptions
withAttachTimeout(long duration, java.util.concurrent.TimeUnit unit)
InternetExplorerOptions
withAttachTimeout(java.time.Duration duration)
InternetExplorerOptions
withInitialBrowserUrl(java.lang.String url)
-
Methods inherited from class org.openqa.selenium.remote.AbstractDriverOptions
asMap, getCapability, getCapabilityNames, setAcceptInsecureCerts, setPageLoadStrategy, setProxy, setStrictFileInteractability, setUnhandledPromptBehaviour
-
Methods inherited from class org.openqa.selenium.MutableCapabilities
equals, hashCode, setCapability, setCapability, setCapability, toJson, toString
-
-
-
-
Method Detail
-
merge
public InternetExplorerOptions merge(org.openqa.selenium.Capabilities extraCapabilities)
- Specified by:
merge
in interfaceorg.openqa.selenium.Capabilities
- Overrides:
merge
in 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_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 ofProxy.ProxyType.DIRECT
Proxy.ProxyType.MANUAL
Proxy.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:
setCapability
in classorg.openqa.selenium.MutableCapabilities
-
getExtraCapabilityNames
protected java.util.Set<java.lang.String> getExtraCapabilityNames()
- Specified by:
getExtraCapabilityNames
in classorg.openqa.selenium.remote.AbstractDriverOptions<InternetExplorerOptions>
-
getExtraCapability
protected java.lang.Object getExtraCapability(java.lang.String capabilityName)
- Specified by:
getExtraCapability
in classorg.openqa.selenium.remote.AbstractDriverOptions<InternetExplorerOptions>
-
-