public class EdgeOptions extends Object
EdgeDriver.
Example usage:
EdgeOptions options = new EdgeOptions()
// For use with ChromeDriver:
EdgeDriver driver = new EdgeDriver(options);
// or alternatively:
DesiredCapabilities capabilities = DesiredCapabilities.edge();
capabilities.setCapability(EdgeOptions.CAPABILITY, options);
EdgeDriver driver = new EdgeDriver(capabilities);
// For use with RemoteWebDriver:
DesiredCapabilities capabilities = DesiredCapabilities.edge();
capabilities.setCapability(EdgeOptions.CAPABILITY, options);
RemoteWebDriver driver = new RemoteWebDriver(
new URL("http://localhost:4444/wd/hub"), capabilities);
| Modifier and Type | Field and Description |
|---|---|
static String |
CAPABILITY
Key used to store a set of EdgeOptions in a
DesiredCapabilities
object. |
| Constructor and Description |
|---|
EdgeOptions() |
| Modifier and Type | Method and Description |
|---|---|
void |
setPageLoadStrategy(String strategy)
Sets the page load strategy for Edge
Supported values are "normal", "eager" and "none"
|
com.google.gson.JsonObject |
toJson()
Converts this instance to its JSON representation.
|
public static final String CAPABILITY
DesiredCapabilities
object.public void setPageLoadStrategy(String strategy)
strategy - strategy for page load: normal, eager or nonepublic com.google.gson.JsonObject toJson()
throws IOException
IOException - If an error occurred while reading the Edge extension files.Copyright © 2015. All rights reserved.