Class ElectronOptions
java.lang.Object
org.openqa.selenium.MutableCapabilities
org.openqa.selenium.remote.AbstractDriverOptions<ChromiumOptions<?>>
org.openqa.selenium.chromium.ChromiumOptions<ElectronOptions>
org.openqa.selenium.chrome.ElectronOptions
- All Implemented Interfaces:
Serializable, Capabilities
Class to manage options specific to
ElectronDriver.
Example usage:
ElectronOptions options = new ElectronOptions(new File("/path/to/electron/app"));
options.setBrowserVersion("29.0.0");
ElectronDriver driver = new ElectronDriver(options);
The binary must point to your Electron application's executable file. On macOS, this means the
binary inside the .app not the bundle directory itself. The browser version, when set,
should match your bundled Electron version.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmerge(Capabilities extraCapabilities) Merge twoCapabilitiestogether and return the union of the two as a newCapabilitiesinstance.Methods inherited from class ChromiumOptions
addArguments, addArguments, addEncodedExtensions, addEncodedExtensions, addExtensions, addExtensions, enableBiDi, getExtraCapability, getExtraCapabilityNames, mergeInOptionsFromCaps, mergeInPlace, self, setAndroidActivity, setAndroidDeviceSerialNumber, setAndroidPackage, setAndroidProcess, setBinary, setBinary, setExperimentalOption, setUseRunningAndroidAppMethods inherited from class AbstractDriverOptions
asMap, getCapability, getCapabilityNames, setAcceptInsecureCerts, setBrowserVersion, setEnableDownloads, setImplicitWaitTimeout, setPageLoadStrategy, setPageLoadTimeout, setPlatformName, setProxy, setScriptTimeout, setStrictFileInteractability, setUnhandledPromptBehaviourMethods inherited from class MutableCapabilities
equals, hashCode, setCapability, setCapability, setCapability, setCapability, toJson, toStringMethods inherited from interface Capabilities
get, getBrowserName, getBrowserVersion, getPlatformName, is, required
-
Field Details
-
CAPABILITY
- See Also:
-
-
Constructor Details
-
ElectronOptions
-
-
Method Details
-
merge
Description copied from class:MutableCapabilitiesMerge twoCapabilitiestogether and return the union of the two as a newCapabilitiesinstance. Capabilities fromotherwill override those inthis.- Specified by:
mergein interfaceCapabilities- Overrides:
mergein classMutableCapabilities
-