Package org.openqa.selenium.edge
Class EdgeOptions
- java.lang.Object
-
- org.openqa.selenium.MutableCapabilities
-
- org.openqa.selenium.remote.AbstractDriverOptions<org.openqa.selenium.chromium.ChromiumOptions>
-
- org.openqa.selenium.chromium.ChromiumOptions<EdgeOptions>
-
- org.openqa.selenium.edge.EdgeOptions
-
- All Implemented Interfaces:
org.openqa.selenium.Capabilities
public class EdgeOptions extends org.openqa.selenium.chromium.ChromiumOptions<EdgeOptions>
Class to manage options specific toEdgeDriver
.Example usage:
EdgeOptions options = new EdgeOptions() options.addExtensions(new File("/path/to/extension.crx")) options.setBinary(new File("/path/to/edge")); // For use with EdgeDriver: EdgeDriver driver = new EdgeDriver(options); // For use with RemoteWebDriver: RemoteWebDriver driver = new RemoteWebDriver( new URL("http://localhost:4444/"), new EdgeOptions());
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CAPABILITY
Key used to store a set of ChromeOptions in aCapabilities
object.static java.lang.String
USE_CHROMIUM
Key used to indicate whether to use an Edge Chromium or Edge Legacy driver.
-
Constructor Summary
Constructors Constructor Description EdgeOptions()
-
Method Summary
-
Methods inherited from class org.openqa.selenium.chromium.ChromiumOptions
addArguments, addArguments, addEncodedExtensions, addEncodedExtensions, addExtensions, addExtensions, amendHashCode, asMap, merge, setBinary, setBinary, setExperimentalOption, setHeadless
-
Methods inherited from class org.openqa.selenium.remote.AbstractDriverOptions
setAcceptInsecureCerts, setPageLoadStrategy, setProxy, setStrictFileInteractability, setUnhandledPromptBehaviour
-
Methods inherited from class org.openqa.selenium.MutableCapabilities
equals, getCapability, getCapabilityNames, hashCode, setCapability, setCapability, setCapability, setCapability, toJson, toString
-
-
-
-
Field Detail
-
USE_CHROMIUM
public static final java.lang.String USE_CHROMIUM
Key used to indicate whether to use an Edge Chromium or Edge Legacy driver.- See Also:
- Constant Field Values
-
CAPABILITY
public static final java.lang.String CAPABILITY
Key used to store a set of ChromeOptions in aCapabilities
object.- See Also:
- Constant Field Values
-
-