Interface Summary Interface Description Alert By.Remotable CapabilitiesDescribes a series of key/value pairs that encapsulate aspects of a browser. ContextAwareSome implementations of WebDriver, notably those that support native testing, need the ability to switch between the native and web-based contexts. CredentialsMarker interface for credentials used for authenticating a browser to a site, typically via
UsernameAndPasswordand Basic or Digest authentication.
HasAuthenticationIndicates that a driver supports authenticating to a website in some way. HasCapabilitiesUsed by classes to indicate that they can describe the
Class Summary Class Description AcceptedW3CCapabilityKeys BuildInfoReads information about how the current application was built. ByMechanism used to locate elements within a document. By.ByClassName By.ByCssSelector By.ById By.ByLinkText By.ByName By.ByPartialLinkText By.ByTagName By.ByXPath By.Remotable.Parameters Cookie Cookie.Builder DeviceRotationDefines an object which represents the three dimensional plane and how a device can be rotated about it. DimensionSimilar to Point - implement locally to avoid depending on GWT. ImmutableCapabilities MutableCapabilities PersistentCapabilities PointA copy of java.awt.Point, to remove dependency on awt. ProxyConfiguration parameters for using proxies in WebDriver. Rectangle ScriptKey UsernameAndPasswordA combination of username and password to use when authenticating a browser with a website.
Enum Summary Enum Description ArchitectureRepresents the known architectures used in WebDriver. KeysRepresentations of pressable keys that aren't text. PageLoadStrategy PlatformRepresents the known and supported Platforms that WebDriver runs on. Proxy.ProxyType ScreenOrientationRepresents possible screen orientations. UnexpectedAlertBehaviour WindowTypeRepresents the type of a new browser window that may be created.
Exception Summary Exception Description ElementClickInterceptedExceptionIndicates that a click could not be properly executed because the target element was obscured in some way. ElementNotInteractableExceptionThrown to indicate that although a
WebElementis present on the DOM, it is not in a state that can be interacted with.
HealthCheckFailedExceptionIndicates that a Node health check failed. InvalidArgumentException InvalidCookieDomainExceptionThrown when attempting to add a cookie under a different domain than the current URL. InvalidElementStateExceptionIndicates that a
WebElementis in a state that means actions cannot be performed with it.
NoSuchCookieException NoSuchElementException NoSuchFrameException NoSuchSessionExceptionThrown by any command being called after
NoSuchShadowRootException NoSuchWindowException NotFoundException RetrySessionRequestException ScriptTimeoutExceptionThrown when an async execute script command does not complete in enough time. SessionNotCreatedExceptionIndicates that a session could not be created. StaleElementReferenceExceptionIndicates that a reference to an element is now "stale" --- the element no longer appears on the DOM of the page. TimeoutExceptionThrown when a command does not complete in enough time. UnableToSetCookieExceptionThrown when a driver fails to set a cookie. UnhandledAlertException UnsupportedCommandExceptionUsed to indicate that a command used by the remote webdriver is unsupported. WebDriverException
Annotation Types Summary Annotation Type Description BetaIndicates that a feature or API is in active development, and so should not be relied upon.