Class ElectronDriver

java.lang.Object
org.openqa.selenium.remote.RemoteWebDriver
org.openqa.selenium.chromium.ChromiumDriver
org.openqa.selenium.chrome.ElectronDriver
All Implemented Interfaces:
org.openqa.selenium.bidi.HasBiDi, org.openqa.selenium.chromium.HasCasting, org.openqa.selenium.chromium.HasCdp, org.openqa.selenium.chromium.HasLaunchApp, org.openqa.selenium.chromium.HasNetworkConditions, org.openqa.selenium.chromium.HasPermissions, org.openqa.selenium.devtools.HasDevTools, org.openqa.selenium.federatedcredentialmanagement.HasFederatedCredentialManagement, org.openqa.selenium.HasAuthentication, org.openqa.selenium.HasCapabilities, org.openqa.selenium.HasDownloads, org.openqa.selenium.interactions.Interactive, org.openqa.selenium.JavascriptExecutor, org.openqa.selenium.logging.HasLogEvents, org.openqa.selenium.PrintsPage, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.virtualauthenticator.HasVirtualAuthenticator, org.openqa.selenium.WebDriver

public class ElectronDriver extends org.openqa.selenium.chromium.ChromiumDriver
A WebDriver implementation that controls an Electron application running on the local machine. Driver lifecycle and discovery are managed by ChromeDriverService.

Casting and Chrome DevTools Protocol commands are not supported on Electron sessions.

See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.openqa.selenium.remote.RemoteWebDriver

    org.openqa.selenium.remote.RemoteWebDriver.RemoteTargetLocator, org.openqa.selenium.remote.RemoteWebDriver.RemoteWebDriverOptions, org.openqa.selenium.remote.RemoteWebDriver.When

    Nested classes/interfaces inherited from interface org.openqa.selenium.HasDownloads

    org.openqa.selenium.HasDownloads.DownloadedFile

    Nested classes/interfaces inherited from interface org.openqa.selenium.WebDriver

    org.openqa.selenium.WebDriver.Navigation, org.openqa.selenium.WebDriver.Options, org.openqa.selenium.WebDriver.TargetLocator, org.openqa.selenium.WebDriver.Timeouts, org.openqa.selenium.WebDriver.Window
  • Field Summary

    Fields inherited from class org.openqa.selenium.chromium.ChromiumDriver

    casting, cdp, IS_CHROMIUM_BROWSER

    Fields inherited from class org.openqa.selenium.remote.RemoteWebDriver

    capabilities
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    ElectronDriver(ChromeDriverService service, ElectronOptions options, org.openqa.selenium.remote.http.ClientConfig clientConfig)
     
     
    ElectronDriver(ElectronOptions options, org.openqa.selenium.remote.http.ClientConfig clientConfig)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    executeCdpCommand(String commandName, Map<String,Object> parameters)
     
     
     
    void
    selectCastSink(String deviceName)
     
    void
     
    void
     
    void
    stopCasting(String deviceName)
     

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

    deleteNetworkConditions, executeScript, getCapabilities, getNetworkConditions, getPinnedScripts, launchApp, maybeGetDevTools, onLogEvent, pin, register, setFileDetector, setNetworkConditions, setPermission, unpin

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

    addVirtualAuthenticator, builder, close, deleteDownloadableFiles, downloadFile, execute, execute, execute, executeAsyncScript, executeScript, findElement, findElements, findElements, fireSessionEvent, fireSessionEvent, get, getClientConfig, getCommandExecutor, getCurrentUrl, getDownloadableFiles, getDownloadedFiles, getElementConverter, getErrorHandler, getExecuteMethod, getFederatedCredentialManagementDialog, getFileDetector, getPageSource, getScreenshotAs, getSessionId, getTitle, getWindowHandle, getWindowHandles, isDownloadsEnabled, log, manage, maybeGetBiDi, navigate, network, perform, print, quit, removeVirtualAuthenticator, resetCooldown, resetInputState, script, setCommandExecutor, setDelayEnabled, setElementConverter, setErrorHandler, setFoundBy, setLogLevel, setSessionId, startSession, switchTo, toString

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.openqa.selenium.HasAuthentication

    register

    Methods inherited from interface org.openqa.selenium.bidi.HasBiDi

    getBiDi, maybeGetBiDi

    Methods inherited from interface org.openqa.selenium.devtools.HasDevTools

    getDevTools

    Methods inherited from interface org.openqa.selenium.HasDownloads

    requireDownloadsEnabled
  • Constructor Details

  • Method Details

    • getCastSinks

      public List<Map<String,String>> getCastSinks()
      Specified by:
      getCastSinks in interface org.openqa.selenium.chromium.HasCasting
      Overrides:
      getCastSinks in class org.openqa.selenium.chromium.ChromiumDriver
    • getCastIssueMessage

      public String getCastIssueMessage()
      Specified by:
      getCastIssueMessage in interface org.openqa.selenium.chromium.HasCasting
      Overrides:
      getCastIssueMessage in class org.openqa.selenium.chromium.ChromiumDriver
    • selectCastSink

      public void selectCastSink(String deviceName)
      Specified by:
      selectCastSink in interface org.openqa.selenium.chromium.HasCasting
      Overrides:
      selectCastSink in class org.openqa.selenium.chromium.ChromiumDriver
    • startDesktopMirroring

      public void startDesktopMirroring(String deviceName)
      Specified by:
      startDesktopMirroring in interface org.openqa.selenium.chromium.HasCasting
      Overrides:
      startDesktopMirroring in class org.openqa.selenium.chromium.ChromiumDriver
    • startTabMirroring

      public void startTabMirroring(String deviceName)
      Specified by:
      startTabMirroring in interface org.openqa.selenium.chromium.HasCasting
      Overrides:
      startTabMirroring in class org.openqa.selenium.chromium.ChromiumDriver
    • stopCasting

      public void stopCasting(String deviceName)
      Specified by:
      stopCasting in interface org.openqa.selenium.chromium.HasCasting
      Overrides:
      stopCasting in class org.openqa.selenium.chromium.ChromiumDriver
    • executeCdpCommand

      public Map<String,Object> executeCdpCommand(String commandName, Map<String,Object> parameters)
      Specified by:
      executeCdpCommand in interface org.openqa.selenium.chromium.HasCdp
      Overrides:
      executeCdpCommand in class org.openqa.selenium.chromium.ChromiumDriver