public class EdgeOptions extends MutableCapabilities
EdgeDriver
.
Example usage:
EdgeOptions options = new EdgeOptions()
// For use with EdgeDriver:
EdgeDriver driver = new EdgeDriver(options);
// For use with RemoteWebDriver:
EdgeOptions options = new EdgeOptions();
RemoteWebDriver driver = new RemoteWebDriver(
new URL("http://localhost:4444/wd/hub"), options);
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CAPABILITY
Key used to store a set of EdgeOptions in a
Capabilities object. |
Constructor and Description |
---|
EdgeOptions() |
Modifier and Type | Method and Description |
---|---|
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() |
boolean |
equals(java.lang.Object o) |
java.lang.Object |
getCapability(java.lang.String capabilityName) |
Platform |
getPlatform() |
int |
hashCode() |
EdgeOptions |
merge(Capabilities extraCapabilities)
Merges the extra capabilities provided into this DesiredCapabilities instance.
|
void |
setPageLoadStrategy(java.lang.String strategy)
Sets the page load strategy for Edge
Supported values are "normal", "eager" and "none"
|
EdgeOptions |
setProxy(Proxy proxy) |
java.lang.String |
toString() |
setCapability, setCapability, setCapability, setCapability
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBrowserName, getVersion, is, isJavascriptEnabled
public static final java.lang.String CAPABILITY
Capabilities
object.public EdgeOptions merge(Capabilities extraCapabilities)
MutableCapabilities
merge
in interface Capabilities
merge
in class MutableCapabilities
extraCapabilities
- Additional capabilities to be added.public void setPageLoadStrategy(java.lang.String strategy)
strategy
- strategy for page load: normal, eager or nonepublic EdgeOptions setProxy(Proxy proxy)
public java.util.Map<java.lang.String,java.lang.Object> asMap()
asMap
in interface Capabilities
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
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