Class ChromeDriver

  • All Implemented Interfaces:
    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.HasAuthentication, org.openqa.selenium.HasCapabilities, org.openqa.selenium.html5.LocationContext, org.openqa.selenium.html5.WebStorage, org.openqa.selenium.interactions.HasInputDevices, org.openqa.selenium.interactions.HasTouchScreen, org.openqa.selenium.interactions.Interactive, org.openqa.selenium.JavascriptExecutor, org.openqa.selenium.logging.HasLogEvents, org.openqa.selenium.mobile.NetworkConnection, 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:
    chromedriver
    • 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.When
      • Nested classes/interfaces inherited from interface org.openqa.selenium.mobile.NetworkConnection

        org.openqa.selenium.mobile.NetworkConnection.ConnectionType
      • Nested classes/interfaces inherited from interface org.openqa.selenium.WebDriver

        org.openqa.selenium.WebDriver.ImeHandler, 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_BROWSER
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.openqa.selenium.remote.RemoteWebDriverBuilder builder()  
      • Methods inherited from class org.openqa.selenium.chromium.ChromiumDriver

        deleteNetworkConditions, executeCdpCommand, getCapabilities, getCastIssueMessage, getCastSinks, getLocalStorage, getNetworkConditions, getNetworkConnection, getSessionStorage, getTouch, 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, getKeyboard, getMouse, 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​(ChromeDriverService service)
        Creates a new ChromeDriver instance. The service will be started along with the driver, and shutdown upon calling ChromiumDriver.quit().
        Parameters:
        service - The service to use.
        See Also:
        RemoteWebDriver(org.openqa.selenium.remote.CommandExecutor, Capabilities)
      • ChromeDriver

        @Deprecated
        public ChromeDriver​(org.openqa.selenium.Capabilities capabilities)
        Deprecated.
        Creates a new ChromeDriver instance. The capabilities will be passed to the ChromeDriver service.
        Parameters:
        capabilities - The capabilities required from the ChromeDriver.
        See Also:
        ChromeDriver(ChromeDriverService, Capabilities)
      • ChromeDriver

        public ChromeDriver​(ChromeDriverService service,
                            ChromeOptions options)
        Creates a new ChromeDriver instance with the specified options. The service will be started along with the driver, and shutdown upon calling ChromiumDriver.quit().
        Parameters:
        service - The service to use.
        options - The options to use.
      • ChromeDriver

        @Deprecated
        public ChromeDriver​(ChromeDriverService service,
                            org.openqa.selenium.Capabilities capabilities)
        Creates a new ChromeDriver instance. The service will be started along with the driver, and shutdown upon calling ChromiumDriver.quit().
        Parameters:
        service - The service to use.
        capabilities - The capabilities required from the ChromeDriver.
    • Method Detail

      • builder

        @Beta
        public static org.openqa.selenium.remote.RemoteWebDriverBuilder builder()