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 | |
WebDriverInfo |
Describes, in general terms, a webdriver instance.
|
WebElement |
Represents an HTML element.
|
WrapsDriver |
This interface indicates that the implementing class knows about the driver that contains it and
can export it.
|
WrapsElement |
Indicates that there is an underlying element that can be used
|
Class | Description |
---|---|
BuildInfo |
Reads information about how the current application was built from the Build-Info section of the
manifest in the jar file, which contains this class.
|
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 | |
DeviceRotation |
Defines an object which represents the three dimensional plane and how a device can be rotated
about it.
|
Dimension |
Similar to Point - implement locally to avoid depending on GWT.
|
ImmutableCapabilities | |
MutableCapabilities | |
Point |
A copy of java.awt.Point, to remove dependency on awt.
|
Proxy |
Configuration parameters for using proxies in WebDriver.
|
Rectangle |
Enum | Description |
---|---|
Architecture |
Represents the known architectures used in WebDriver.
|
Keys |
Representations of pressable keys that aren't text.
|
PageLoadStrategy | |
Platform |
Represents the known and supported Platforms that WebDriver runs on.
|
Proxy.ProxyType | |
ScreenOrientation |
Represents possible screen orientations.
|
UnexpectedAlertBehaviour |
Exception | Description |
---|---|
ElementClickInterceptedException |
Indicates that a click could not be properly executed because the target element was obscured in
some way.
|
ElementNotInteractableException |
Thrown to indicate that although an element is present on the DOM, it is not in a state that can
be interacted with.
|
ElementNotSelectableException |
Thrown to indicate that although an element is present on the DOM, it is not selectable, and so
is not able to be interacted with.
|
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.
|
InvalidArgumentException | |
InvalidCookieDomainException |
Thrown when attempting to add a cookie under a different domain than the current URL.
|
InvalidElementStateException |
Indicates that a
WebElement is in a state that means actions cannot be performed with it. |
InvalidSelectorException | |
JavascriptException | |
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)}. |
NoSuchCookieException | |
NoSuchElementException |
Thrown by
WebDriver.findElement(By by) and
WebElement.findElement(By by) . |
NoSuchFrameException | |
NoSuchSessionException |
Thrown by any command being called after
WebDriver.quit() . |
NoSuchWindowException | |
NotFoundException | |
ScriptTimeoutException |
Thrown when an async execute script command does not complete in enough time.
|
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.
|