Package org.openqa.selenium
-
Interface Summary Interface Description Alert By.Remotable 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.Credentials Marker interface for credentials used for authenticating a browser to a site, typically viaUsernameAndPassword
and Basic or Digest authentication.HasAuthentication Indicates that a driver supports authenticating to a website in some way.HasCapabilities Used by classes to indicate that they can describe theCapabilities
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.PrintsPage Rotatable Represents rotation of the browser view for orientation-sensitive devices.SearchContext TakesScreenshot Indicates a driver or an HTML element that can capture a screenshot and store it in different ways.WebDriver WebDriver is a remote control interface that enables introspection and control of user agents (browsers).WebDriver.ImeHandler An interface for managing input methods.WebDriver.Navigation WebDriver.Options An interface for managing stuff you would do in a browser menuWebDriver.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 Summary Class Description BuildInfo Reads information about how the current application was built.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 By.Remotable.Parameters 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 Pdf PersistentCapabilities Point A copy of java.awt.Point, to remove dependency on awt.Proxy Configuration parameters for using proxies in WebDriver.Rectangle ScriptKey UsernameAndPassword A combination of username and password to use when authenticating a browser with a website. -
Enum Summary 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 WindowType Represents the type of a new browser window that may be created. -
Exception Summary 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 aWebElement
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 byContextAware.context(String)
WebDriver.switchTo().context(String name)}.NoSuchCookieException NoSuchElementException Thrown byWebDriver.findElement(By by)
andWebElement.findElement(By by)
.NoSuchFrameException NoSuchSessionException Thrown by any command being called afterWebDriver.quit()
.NoSuchShadowRootException NoSuchWindowException NotFoundException RetrySessionRequestException 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 Types Summary Annotation Type Description Beta Indicates that a feature or API is in active development, and so should not be relied upon.