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:
HasCasting
,HasCdp
,HasLaunchApp
,HasNetworkConditions
,HasPermissions
,HasDevTools
,HasAuthentication
,HasCapabilities
,LocationContext
,WebStorage
,Interactive
,JavascriptExecutor
,HasLogEvents
,NetworkConnection
,PrintsPage
,SearchContext
,TakesScreenshot
,HasVirtualAuthenticator
,WebDriver
public class ChromeDriver extends ChromiumDriver
AWebDriver
implementation that controls a Chrome browser running on the local machine. It requires achromedriver
executable to be available in PATH.- See Also:
- chromedriver
-
-
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
Constructors Constructor Description ChromeDriver()
Creates 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(ChromeOptions options)
Creates a new ChromeDriver instance with the specified options.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RemoteWebDriverBuilder
builder()
-
Methods inherited from class org.openqa.selenium.chromium.ChromiumDriver
deleteNetworkConditions, executeCdpCommand, getCapabilities, getCastIssueMessage, getCastSinks, getLocalStorage, getNetworkConditions, getNetworkConnection, getSessionStorage, launchApp, location, maybeGetDevTools, onLogEvent, quit, register, selectCastSink, setFileDetector, setLocation, setNetworkConditions, setNetworkConnection, setPermission, startDesktopMirroring, startTabMirroring, stopCasting
-
Methods inherited from class org.openqa.selenium.remote.RemoteWebDriver
addVirtualAuthenticator, close, execute, execute, execute, executeAsyncScript, executeScript, findElement, findElement, findElements, findElements, findElements, get, getCommandExecutor, getCurrentUrl, getElementConverter, getErrorHandler, getExecuteMethod, getFileDetector, getPageSource, getScreenshotAs, getSessionId, getTitle, getWindowHandle, getWindowHandles, log, manage, navigate, perform, print, removeVirtualAuthenticator, resetInputState, setCommandExecutor, 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.JavascriptExecutor
executeScript, getPinnedScripts, pin, unpin
-
-
-
-
Constructor Detail
-
ChromeDriver
public ChromeDriver()
Creates a new ChromeDriver using thedefault
server configuration.
-
ChromeDriver
public ChromeDriver(ChromeDriverService service)
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:
RemoteWebDriver(org.openqa.selenium.remote.CommandExecutor, Capabilities)
-
ChromeDriver
public ChromeDriver(ChromeOptions options)
Creates a new ChromeDriver instance with the specified options.- Parameters:
options
- The options to use.- See Also:
ChromeDriver(ChromeDriverService, ChromeOptions)
-
ChromeDriver
public ChromeDriver(ChromeDriverService service, ChromeOptions options)
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.
-
-
Method Detail
-
builder
@Beta public static RemoteWebDriverBuilder builder()
-
-