| Interface | Description |
|---|---|
| Alert | |
| Capabilities |
Describes a series of key/value pairs that encapsulate aspects of a browser.
|
| ContextAware |
Some implementations of WebDriver, notably those that support native testing, need the ability
to switch between the native and web-based contexts.
|
| HasCapabilities |
Used by classes to indicate that they can describe the
Capabilities
they possess. |
| JavascriptExecutor |
Indicates that a driver can execute JavaScript, providing access to the mechanism to do so.
|
| OutputType<T> |
Defines the output type for a screenshot.
|
| Rotatable |
Represents rotation of the browser view for orientation-sensitive devices.
|
| SearchContext | |
| TakesScreenshot |
Indicates a driver that can capture a screenshot and store it in different ways.
|
| WebDriver |
The main interface to use for testing, which represents an idealised web browser.
|
| WebDriver.ImeHandler |
An interface for managing input methods.
|
| WebDriver.Navigation | |
| WebDriver.Options |
An interface for managing stuff you would do in a browser menu
|
| WebDriver.TargetLocator |
Used to locate a given frame or window.
|
| WebDriver.Timeouts |
An interface for managing timeout behavior for WebDriver instances.
|
| WebDriver.Window | |
| WebElement |
Represents an HTML element.
|
| Class | Description |
|---|---|
| By |
Mechanism used to locate elements within a document.
|
| By.ByClassName | |
| By.ByCssSelector | |
| By.ById | |
| By.ByLinkText | |
| By.ByName | |
| By.ByPartialLinkText | |
| By.ByTagName | |
| By.ByXPath | |
| Cookie | |
| Cookie.Builder | |
| Dimension |
Similar to Point - implement locally to avoid depending on GWT.
|
| Point |
A copy of java.awt.Point, to remove dependency on awt.
|
| Proxy |
Configuration parameters for using proxies in WebDriver.
|
| Enum | Description |
|---|---|
| Architecture |
Represents the known architectures used in WebDriver.
|
| Keys |
Representations of pressable keys that aren't text.
|
| Platform |
Represents the known and supported Platforms that WebDriver runs on.
|
| Proxy.ProxyType | |
| ScreenOrientation |
Represents possible screen orientations.
|
| UnexpectedAlertBehaviour |
| Exception | Description |
|---|---|
| ElementNotVisibleException |
Thrown to indicate that although an element is present on the DOM, it is not visible, and so is
not able to be interacted with.
|
| ImeActivationFailedException |
Indicates that activating an IME engine has failed.
|
| ImeNotAvailableException |
Indicates that IME support is not available.
|
| InvalidCookieDomainException |
Thrown when attempting to add a cookie under a different domain than the current URL.
|
| InvalidElementStateException | |
| InvalidSelectorException | |
| NoAlertPresentException |
Indicates that a user has tried to access an alert when one is not present.
|
| NoSuchContextException |
Thrown by
ContextAware.context(String)
WebDriver.switchTo().context(String name)}. |
| NoSuchElementException |
Thrown by
WebDriver.findElement(By by) and
WebElement.findElement(By by). |
| NoSuchFrameException | |
| NoSuchWindowException | |
| NotFoundException | |
| SessionNotCreatedException |
Indicates that a session could not be created.
|
| StaleElementReferenceException |
Indicates that a reference to an element is now "stale" --- the element no longer appears on the
DOM of the page.
|
| TimeoutException |
Thrown when a command does not complete in enough time.
|
| UnableToSetCookieException |
Thrown when a driver fails to set a cookie.
|
| UnhandledAlertException | |
| UnsupportedCommandException |
Used to indicate that a command used by the remote webdriver is unsupported.
|
| WebDriverException |
| Annotation Type | Description |
|---|---|
| Beta |
Indicates that a feature or API is in active development, and so should not
be relied upon.
|
Copyright © 2015. All rights reserved.