Class ElectronOptions

java.lang.Object
org.openqa.selenium.MutableCapabilities
org.openqa.selenium.remote.AbstractDriverOptions<org.openqa.selenium.chromium.ChromiumOptions<?>>
org.openqa.selenium.chromium.ChromiumOptions<ElectronOptions>
org.openqa.selenium.chrome.ElectronOptions
All Implemented Interfaces:
Serializable, org.openqa.selenium.Capabilities

public class ElectronOptions extends org.openqa.selenium.chromium.ChromiumOptions<ElectronOptions>
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
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    merge(org.openqa.selenium.Capabilities extraCapabilities)
     

    Methods inherited from class org.openqa.selenium.chromium.ChromiumOptions

    addArguments, addArguments, addEncodedExtensions, addEncodedExtensions, addExtensions, addExtensions, enableBiDi, getExtraCapability, getExtraCapabilityNames, mergeInOptionsFromCaps, mergeInPlace, self, setAndroidActivity, setAndroidDeviceSerialNumber, setAndroidPackage, setAndroidProcess, setBinary, setBinary, setExperimentalOption, setUseRunningAndroidApp

    Methods inherited from class org.openqa.selenium.remote.AbstractDriverOptions

    asMap, getCapability, getCapabilityNames, setAcceptInsecureCerts, setBrowserVersion, setEnableDownloads, setImplicitWaitTimeout, setPageLoadStrategy, setPageLoadTimeout, setPlatformName, setProxy, setScriptTimeout, setStrictFileInteractability, setUnhandledPromptBehaviour

    Methods inherited from class org.openqa.selenium.MutableCapabilities

    equals, hashCode, setCapability, setCapability, setCapability, setCapability, toJson, toString

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.openqa.selenium.Capabilities

    get, getBrowserName, getBrowserVersion, getPlatformName, is, required
  • Field Details

  • Constructor Details

    • ElectronOptions

      public ElectronOptions(File binary)
  • Method Details

    • merge

      public ElectronOptions merge(org.openqa.selenium.Capabilities extraCapabilities)
      Specified by:
      merge in interface org.openqa.selenium.Capabilities
      Overrides:
      merge in class org.openqa.selenium.MutableCapabilities