@Beta public class InternetExplorerOptions extends MutableCapabilities
InternetExplorerOptions options = new InternetExplorerOptions() .requireWindowFocus(); new InternetExplorerDriver(options);
Constructor and Description |
---|
InternetExplorerOptions() |
InternetExplorerOptions(Capabilities source) |
Modifier and Type | Method and Description |
---|---|
InternetExplorerOptions |
addCommandSwitches(java.lang.String... switches) |
protected int |
amendHashCode()
Subclasses can use this to add information that isn't always in the capabilities map.
|
java.util.Map<java.lang.String,java.lang.Object> |
asMap() |
InternetExplorerOptions |
destructivelyEnsureCleanSession()
Clear the Internet Explorer cache before launching the browser.
|
InternetExplorerOptions |
elementScrollTo(ElementScrollBehavior behavior) |
InternetExplorerOptions |
enableNativeEvents() |
InternetExplorerOptions |
enablePersistentHovering()
Enable persistently sending
WM_MOUSEMOVE messages to the IE window during a mouse
hover. |
boolean |
equals(java.lang.Object o) |
java.lang.Object |
getCapability(java.lang.String capabilityName) |
Platform |
getPlatform() |
int |
hashCode() |
InternetExplorerOptions |
ignoreZoomSettings() |
InternetExplorerOptions |
introduceFlakinessByIgnoringSecurityDomains() |
InternetExplorerOptions |
merge(Capabilities extraCapabilities)
Merges the extra capabilities provided into this DesiredCapabilities instance.
|
InternetExplorerOptions |
requireWindowFocus() |
void |
setCapability(java.lang.String key,
java.lang.Object value) |
InternetExplorerOptions |
setPageLoadStrategy(PageLoadStrategy strategy) |
InternetExplorerOptions |
setProxy(Proxy proxy) |
InternetExplorerOptions |
setUnhandledPromptBehaviour(UnexpectedAlertBehaviour behaviour) |
InternetExplorerOptions |
takeFullPageScreenshot() |
java.util.Map<java.lang.String,java.lang.Object> |
toJson() |
java.lang.String |
toString() |
InternetExplorerOptions |
useCreateProcessApiToLaunchIe()
Force the use of the Windows CreateProcess API when launching Internet Explorer.
|
InternetExplorerOptions |
usePerProcessProxy()
Use the
Proxy defined in other Capabilities 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(java.time.Duration duration) |
InternetExplorerOptions |
waitForUploadDialogUpTo(long duration,
java.util.concurrent.TimeUnit unit) |
InternetExplorerOptions |
withAttachTimeout(java.time.Duration duration) |
InternetExplorerOptions |
withAttachTimeout(long duration,
java.util.concurrent.TimeUnit unit) |
InternetExplorerOptions |
withInitialBrowserUrl(java.lang.String url) |
setCapability, setCapability, setCapability
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBrowserName, getVersion, is, isJavascriptEnabled
public InternetExplorerOptions()
public InternetExplorerOptions(Capabilities source)
public InternetExplorerOptions merge(Capabilities extraCapabilities)
MutableCapabilities
merge
in interface Capabilities
merge
in class MutableCapabilities
extraCapabilities
- Additional capabilities to be added.public InternetExplorerOptions withAttachTimeout(long duration, java.util.concurrent.TimeUnit unit)
public InternetExplorerOptions withAttachTimeout(java.time.Duration duration)
public InternetExplorerOptions elementScrollTo(ElementScrollBehavior behavior)
public InternetExplorerOptions enablePersistentHovering()
WM_MOUSEMOVE
messages to the IE window during a mouse
hover.public InternetExplorerOptions useCreateProcessApiToLaunchIe()
public InternetExplorerOptions useShellWindowsApiToAttachToIe()
public InternetExplorerOptions destructivelyEnsureCleanSession()
public InternetExplorerOptions addCommandSwitches(java.lang.String... switches)
public InternetExplorerOptions usePerProcessProxy()
Proxy
defined in other Capabilities
on a
per-process basis, not updating the system installed proxy setting. This is only valid when
setting a Proxy
where the
Proxy.ProxyType
is one of
public InternetExplorerOptions withInitialBrowserUrl(java.lang.String url)
public InternetExplorerOptions requireWindowFocus()
public InternetExplorerOptions waitForUploadDialogUpTo(long duration, java.util.concurrent.TimeUnit unit)
public InternetExplorerOptions waitForUploadDialogUpTo(java.time.Duration duration)
public InternetExplorerOptions introduceFlakinessByIgnoringSecurityDomains()
public InternetExplorerOptions enableNativeEvents()
public InternetExplorerOptions ignoreZoomSettings()
public InternetExplorerOptions takeFullPageScreenshot()
public InternetExplorerOptions setPageLoadStrategy(PageLoadStrategy strategy)
public InternetExplorerOptions setUnhandledPromptBehaviour(UnexpectedAlertBehaviour behaviour)
public InternetExplorerOptions setProxy(Proxy proxy)
public void setCapability(java.lang.String key, java.lang.Object value)
setCapability
in class MutableCapabilities
public Platform getPlatform()
getPlatform
in interface Capabilities
public java.lang.Object getCapability(java.lang.String capabilityName)
getCapability
in interface Capabilities
capabilityName
- The capability to return.CapabilityType
public java.util.Map<java.lang.String,java.lang.Object> asMap()
asMap
in interface Capabilities
public java.util.Map<java.lang.String,java.lang.Object> toJson()
protected int amendHashCode()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object