Class ElectronOptions

All Implemented Interfaces:
Serializable, Capabilities

public class ElectronOptions extends 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: