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:
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 ChromeDriver
extends org.openqa.selenium.chromium.ChromiumDriver
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
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.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
ConstructorsConstructorDescriptionCreates a new ChromeDriver using thedefaultserver 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, org.openqa.selenium.remote.http.ClientConfig clientConfig) ChromeDriver(ChromeOptions options) Creates a new ChromeDriver instance with the specified options. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.openqa.selenium.remote.RemoteWebDriverBuilderbuilder()Methods inherited from class org.openqa.selenium.chromium.ChromiumDriver
deleteNetworkConditions, executeCdpCommand, executeScript, getCapabilities, getCastIssueMessage, getCastSinks, getNetworkConditions, getPinnedScripts, launchApp, maybeGetBiDi, maybeGetDevTools, onLogEvent, pin, quit, register, selectCastSink, setFileDetector, setNetworkConditions, setPermission, startDesktopMirroring, startTabMirroring, stopCasting, unpinMethods 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, isDownloadsEnabled, log, manage, navigate, network, perform, print, removeVirtualAuthenticator, resetCooldown, resetInputState, script, setCommandExecutor, setDelayEnabled, setElementConverter, setErrorHandler, setFoundBy, setLogLevel, setSessionId, startSession, switchTo, toStringMethods inherited from class java.lang.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
getBiDiMethods inherited from interface org.openqa.selenium.devtools.HasDevTools
getDevToolsMethods inherited from interface org.openqa.selenium.HasDownloads
requireDownloadsEnabled
-
Constructor Details
-
ChromeDriver
public ChromeDriver()Creates a new ChromeDriver using thedefaultserver configuration.- See Also:
-
ChromeDriver
Creates a new ChromeDriver instance. Theservicewill 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. Theservicewill be started along with the driver, and shutdown upon callingChromiumDriver.quit().- Parameters:
service- The service to use.options- The options required from ChromeDriver.
-
ChromeDriver
public ChromeDriver(ChromeDriverService service, ChromeOptions options, org.openqa.selenium.remote.http.ClientConfig clientConfig)
-
-
Method Details
-
builder
@Beta public static org.openqa.selenium.remote.RemoteWebDriverBuilder builder()
-