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.WhenNested classes/interfaces inherited from interface org.openqa.selenium.HasDownloads
org.openqa.selenium.HasDownloads.DownloadedFileNested 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_BROWSERFields inherited from class org.openqa.selenium.remote.RemoteWebDriver
capabilities -
Constructor Summary
ConstructorsConstructorDescriptionElectronDriver(ChromeDriverService service, ElectronOptions options) ElectronDriver(ChromeDriverService service, ElectronOptions options, org.openqa.selenium.remote.http.ClientConfig clientConfig) ElectronDriver(ElectronOptions options) ElectronDriver(ElectronOptions options, org.openqa.selenium.remote.http.ClientConfig clientConfig) -
Method Summary
Modifier and TypeMethodDescriptionexecuteCdpCommand(String commandName, Map<String, Object> parameters) voidselectCastSink(String deviceName) voidstartDesktopMirroring(String deviceName) voidstartTabMirroring(String deviceName) voidstopCasting(String deviceName) Methods inherited from class org.openqa.selenium.chromium.ChromiumDriver
deleteNetworkConditions, executeScript, getCapabilities, getNetworkConditions, getPinnedScripts, launchApp, maybeGetDevTools, onLogEvent, pin, register, setFileDetector, setNetworkConditions, setPermission, unpinMethods 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, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.openqa.selenium.HasAuthentication
registerMethods inherited from interface org.openqa.selenium.bidi.HasBiDi
getBiDi, maybeGetBiDiMethods inherited from interface org.openqa.selenium.devtools.HasDevTools
getDevToolsMethods inherited from interface org.openqa.selenium.HasDownloads
requireDownloadsEnabled
-
Constructor Details
-
ElectronDriver
-
ElectronDriver
public ElectronDriver(ElectronOptions options, org.openqa.selenium.remote.http.ClientConfig clientConfig) -
ElectronDriver
-
ElectronDriver
public ElectronDriver(ChromeDriverService service, ElectronOptions options, org.openqa.selenium.remote.http.ClientConfig clientConfig)
-
-
Method Details
-
getCastSinks
-
getCastIssueMessage
- Specified by:
getCastIssueMessagein interfaceorg.openqa.selenium.chromium.HasCasting- Overrides:
getCastIssueMessagein classorg.openqa.selenium.chromium.ChromiumDriver
-
selectCastSink
- Specified by:
selectCastSinkin interfaceorg.openqa.selenium.chromium.HasCasting- Overrides:
selectCastSinkin classorg.openqa.selenium.chromium.ChromiumDriver
-
startDesktopMirroring
- Specified by:
startDesktopMirroringin interfaceorg.openqa.selenium.chromium.HasCasting- Overrides:
startDesktopMirroringin classorg.openqa.selenium.chromium.ChromiumDriver
-
startTabMirroring
- Specified by:
startTabMirroringin interfaceorg.openqa.selenium.chromium.HasCasting- Overrides:
startTabMirroringin classorg.openqa.selenium.chromium.ChromiumDriver
-
stopCasting
- Specified by:
stopCastingin interfaceorg.openqa.selenium.chromium.HasCasting- Overrides:
stopCastingin classorg.openqa.selenium.chromium.ChromiumDriver
-
executeCdpCommand
-