Package org.openqa.selenium.chrome
Class ChromeDriver
java.lang.Object
org.openqa.selenium.remote.RemoteWebDriver
org.openqa.selenium.chromium.ChromiumDriver
org.openqa.selenium.chrome.ChromeDriver
- All Implemented Interfaces:
HasBiDi
,HasCasting
,HasCdp
,HasLaunchApp
,HasNetworkConditions
,HasPermissions
,HasDevTools
,HasFederatedCredentialManagement
,HasAuthentication
,HasCapabilities
,HasDownloads
,LocationContext
,WebStorage
,Interactive
,JavascriptExecutor
,HasLogEvents
,NetworkConnection
,PrintsPage
,SearchContext
,TakesScreenshot
,HasVirtualAuthenticator
,WebDriver
A
WebDriver
implementation that controls a Chrome browser running on the local machine.
It requires a chromedriver
executable to be available in PATH.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openqa.selenium.remote.RemoteWebDriver
RemoteWebDriver.RemoteTargetLocator, RemoteWebDriver.RemoteWebDriverOptions, RemoteWebDriver.When
Nested classes/interfaces inherited from interface org.openqa.selenium.mobile.NetworkConnection
NetworkConnection.ConnectionType
Nested classes/interfaces inherited from interface org.openqa.selenium.WebDriver
WebDriver.Navigation, WebDriver.Options, WebDriver.TargetLocator, WebDriver.Timeouts, WebDriver.Window
-
Field Summary
Fields inherited from class org.openqa.selenium.chromium.ChromiumDriver
casting, cdp, IS_CHROMIUM_BROWSER
-
Constructor Summary
ConstructorDescriptionCreates a new ChromeDriver using thedefault
server configuration.ChromeDriver
(ChromeDriverService service) Creates a new ChromeDriver instance.ChromeDriver
(ChromeDriverService service, ChromeOptions options) Creates a new ChromeDriver instance with the specified options.ChromeDriver
(ChromeDriverService service, ChromeOptions options, ClientConfig clientConfig) ChromeDriver
(ChromeOptions options) Creates a new ChromeDriver instance with the specified options. -
Method Summary
Methods inherited from class org.openqa.selenium.chromium.ChromiumDriver
deleteNetworkConditions, executeCdpCommand, executeScript, getCapabilities, getCastIssueMessage, getCastSinks, getLocalStorage, getNetworkConditions, getNetworkConnection, getPinnedScripts, getSessionStorage, launchApp, location, maybeGetBiDi, maybeGetDevTools, onLogEvent, pin, quit, register, selectCastSink, setFileDetector, setLocation, setNetworkConditions, setNetworkConnection, setPermission, startDesktopMirroring, startTabMirroring, stopCasting, unpin
Methods inherited from class org.openqa.selenium.remote.RemoteWebDriver
addVirtualAuthenticator, close, deleteDownloadableFiles, downloadFile, execute, execute, execute, executeAsyncScript, executeScript, findElement, findElements, findElements, get, getCommandExecutor, getCurrentUrl, getDownloadableFiles, getElementConverter, getErrorHandler, getExecuteMethod, getFederatedCredentialManagementDialog, getFileDetector, getPageSource, getScreenshotAs, getSessionId, getTitle, getWindowHandle, getWindowHandles, log, manage, navigate, network, perform, print, removeVirtualAuthenticator, resetCooldown, resetInputState, script, setCommandExecutor, setDelayEnabled, setElementConverter, setErrorHandler, setFoundBy, setLogLevel, setSessionId, startSession, switchTo, toString
Methods inherited from class java.lang.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.devtools.HasDevTools
getDevTools
Methods inherited from interface org.openqa.selenium.HasDownloads
requireDownloadsEnabled
-
Constructor Details
-
ChromeDriver
public ChromeDriver()Creates a new ChromeDriver using thedefault
server configuration. -
ChromeDriver
Creates a new ChromeDriver instance. Theservice
will be started along with the driver, and shutdown upon callingChromiumDriver.quit()
.- Parameters:
service
- The service to use.- See Also:
-
ChromeDriver
Creates a new ChromeDriver instance with the specified options.- Parameters:
options
- The options to use.- See Also:
-
ChromeDriver
Creates a new ChromeDriver instance with the specified options. Theservice
will be started along with the driver, and shutdown upon callingChromiumDriver.quit()
.- Parameters:
service
- The service to use.options
- The options required from ChromeDriver.
-
ChromeDriver
-
-
Method Details
-
builder
-