Package io.appium.java_client.chromium
Class ChromiumDriver
java.lang.Object
org.openqa.selenium.remote.RemoteWebDriver
io.appium.java_client.AppiumDriver
io.appium.java_client.chromium.ChromiumDriver
- All Implemented Interfaces:
CanRememberExtensionPresence,ComparesImages,ExecutesDriverScript,ExecutesMethod,HasBrowserCheck,HasSettings,LogsEvents,org.openqa.selenium.bidi.HasBiDi,org.openqa.selenium.federatedcredentialmanagement.HasFederatedCredentialManagement,org.openqa.selenium.HasCapabilities,org.openqa.selenium.HasDownloads,org.openqa.selenium.interactions.Interactive,org.openqa.selenium.JavascriptExecutor,org.openqa.selenium.PrintsPage,org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.virtualauthenticator.HasVirtualAuthenticator,org.openqa.selenium.WebDriver
ChromiumDriver is an officially supported Appium driver created to automate Mobile browsers
and web views based on the Chromium engine. The driver uses W3CWebDriver protocol and is built
on top of chromium driver server.
Read appium-chromium-driver for more details on how to configure and use it.
-
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.remote.RemoteWebDriver
capabilitiesFields inherited from interface io.appium.java_client.HasBrowserCheck
NATIVE_CONTEXT -
Constructor Summary
ConstructorsConstructorDescriptionChromiumDriver(AppiumClientConfig appiumClientConfig, org.openqa.selenium.Capabilities capabilities) Creates a new instance based on the given ClientConfig andcapabilities.ChromiumDriver(AppiumDriverLocalService service, org.openqa.selenium.Capabilities capabilities) ChromiumDriver(AppiumDriverLocalService service, org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory, org.openqa.selenium.Capabilities capabilities) ChromiumDriver(AppiumServiceBuilder builder, org.openqa.selenium.Capabilities capabilities) ChromiumDriver(AppiumServiceBuilder builder, org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory, org.openqa.selenium.Capabilities capabilities) ChromiumDriver(URL remoteSessionAddress, String platformName) This is a special constructor used to connect to a running driver instance.ChromiumDriver(URL remoteAddress, org.openqa.selenium.Capabilities capabilities) ChromiumDriver(URL remoteAddress, org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory, org.openqa.selenium.Capabilities capabilities) ChromiumDriver(org.openqa.selenium.Capabilities capabilities) ChromiumDriver(org.openqa.selenium.remote.http.ClientConfig clientConfig, org.openqa.selenium.Capabilities capabilities) Creates a new instance based on the given ClientConfig andcapabilities.ChromiumDriver(org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory, org.openqa.selenium.Capabilities capabilities) ChromiumDriver(org.openqa.selenium.remote.HttpCommandExecutor executor, org.openqa.selenium.Capabilities capabilities) -
Method Summary
Methods inherited from class io.appium.java_client.AppiumDriver
addCommand, assertExtensionExists, ensureAutomationName, ensurePlatformAndAutomationNames, ensurePlatformName, execute, execute, getBiDi, getExecuteMethod, getHttpClient, getScreenshotAs, getStatus, markExtensionAbsence, maybeGetBiDi, startSessionMethods inherited from class org.openqa.selenium.remote.RemoteWebDriver
addVirtualAuthenticator, builder, close, deleteDownloadableFiles, downloadFile, execute, executeAsyncScript, executeScript, findElement, findElements, findElements, fireSessionEvent, fireSessionEvent, get, getCapabilities, getClientConfig, getCommandExecutor, getCurrentUrl, getDownloadableFiles, getDownloadedFiles, getElementConverter, getErrorHandler, getFederatedCredentialManagementDialog, getFileDetector, getPageSource, getSessionId, getTitle, getWindowHandle, getWindowHandles, isDownloadsEnabled, log, manage, navigate, network, perform, print, quit, removeVirtualAuthenticator, resetCooldown, resetInputState, script, setCommandExecutor, setDelayEnabled, setElementConverter, setErrorHandler, setFileDetector, setFoundBy, setLogLevel, setSessionId, switchTo, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.appium.java_client.ComparesImages
findImageOccurrence, findImageOccurrence, findImageOccurrence, findImageOccurrence, getImagesSimilarity, getImagesSimilarity, getImagesSimilarity, getImagesSimilarity, matchImagesFeatures, matchImagesFeatures, matchImagesFeatures, matchImagesFeaturesMethods inherited from interface io.appium.java_client.ExecutesDriverScript
executeDriverScript, executeDriverScriptMethods inherited from interface io.appium.java_client.HasBrowserCheck
isBrowserMethods inherited from interface org.openqa.selenium.HasCapabilities
getCapabilitiesMethods inherited from interface org.openqa.selenium.HasDownloads
requireDownloadsEnabledMethods inherited from interface io.appium.java_client.HasSettings
getSettings, setSetting, setSetting, setSettings, setSettingsMethods inherited from interface org.openqa.selenium.JavascriptExecutor
executeScript, getPinnedScripts, pin, unpinMethods inherited from interface io.appium.java_client.LogsEvents
getEvents, logEvent
-
Constructor Details
-
ChromiumDriver
public ChromiumDriver(org.openqa.selenium.remote.HttpCommandExecutor executor, org.openqa.selenium.Capabilities capabilities) -
ChromiumDriver
-
ChromiumDriver
public ChromiumDriver(URL remoteAddress, org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory, org.openqa.selenium.Capabilities capabilities) -
ChromiumDriver
public ChromiumDriver(AppiumDriverLocalService service, org.openqa.selenium.Capabilities capabilities) -
ChromiumDriver
public ChromiumDriver(AppiumDriverLocalService service, org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory, org.openqa.selenium.Capabilities capabilities) -
ChromiumDriver
-
ChromiumDriver
public ChromiumDriver(AppiumServiceBuilder builder, org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory, org.openqa.selenium.Capabilities capabilities) -
ChromiumDriver
public ChromiumDriver(org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory, org.openqa.selenium.Capabilities capabilities) -
ChromiumDriver
This is a special constructor used to connect to a running driver instance. It does not do any necessary verifications, but rather assumes the given driver session is already running at `remoteSessionAddress`. The maintenance of driver state(s) is the caller's responsibility. !!! This API is supposed to be used for **debugging purposes only**.- Parameters:
remoteSessionAddress- The address of the **running** session including the session identifier.platformName- The name of the target platform.
-
ChromiumDriver
public ChromiumDriver(org.openqa.selenium.remote.http.ClientConfig clientConfig, org.openqa.selenium.Capabilities capabilities) Creates a new instance based on the given ClientConfig andcapabilities. The HTTP client is default client generated byHttpCommandExecutor.getDefaultClientFactory(). For example:ClientConfig clientConfig = ClientConfig.defaultConfig() .baseUri(URI.create("WebDriver URL")) .readTimeout(Duration.ofMinutes(5)); ChromiumOptions options = new ChromiumOptions(); ChromiumDriver driver = new ChromiumDriver(clientConfig, options);- Parameters:
clientConfig- take a look atClientConfigcapabilities- take a look atCapabilities
-
ChromiumDriver
public ChromiumDriver(AppiumClientConfig appiumClientConfig, org.openqa.selenium.Capabilities capabilities) Creates a new instance based on the given ClientConfig andcapabilities. The HTTP client is default client generated byHttpCommandExecutor.getDefaultClientFactory(). For example:AppiumClientConfig appiumClientConfig = AppiumClientConfig.defaultConfig() .directConnect(true) .baseUri(URI.create("WebDriver URL")) .readTimeout(Duration.ofMinutes(5)); ChromiumOptions options = new ChromiumOptions(); ChromiumDriver driver = new ChromiumDriver(options, appiumClientConfig);- Parameters:
appiumClientConfig- take a look atAppiumClientConfigcapabilities- take a look atCapabilities
-
ChromiumDriver
public ChromiumDriver(org.openqa.selenium.Capabilities capabilities)
-