| 限定符和类型 | 类和说明 |
|---|---|
class |
ElementNotInteractableException
Thrown to indicate that although an element is present on the DOM, it is not in a state that can
be interacted with.
|
class |
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.
|
class |
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.
|
class |
ImeActivationFailedException
Indicates that activating an IME engine has failed.
|
class |
ImeNotAvailableException
Indicates that IME support is not available.
|
class |
InvalidArgumentException |
class |
InvalidCookieDomainException
Thrown when attempting to add a cookie under a different domain than the current URL.
|
class |
InvalidElementStateException |
class |
InvalidSelectorException |
class |
JavascriptException |
class |
NoAlertPresentException
Indicates that a user has tried to access an alert when one is not present.
|
class |
NoSuchContextException
Thrown by
ContextAware.context(String)
WebDriver.switchTo().context(String name)}. |
class |
NoSuchCookieException |
class |
NoSuchElementException
Thrown by
WebDriver.findElement(By by) and
WebElement.findElement(By by). |
class |
NoSuchFrameException
|
class |
NoSuchSessionException
Thrown by any command being called after
WebDriver.quit(). |
class |
NoSuchWindowException
|
class |
NotFoundException |
class |
ScriptTimeoutException
Thrown when an async execute script command does not complete in enough time.
|
class |
SessionNotCreatedException
Indicates that a session could not be created.
|
class |
StaleElementReferenceException
Indicates that a reference to an element is now "stale" --- the element no longer appears on the
DOM of the page.
|
class |
TimeoutException
Thrown when a command does not complete in enough time.
|
class |
UnableToSetCookieException
Thrown when a driver fails to set a cookie.
|
class |
UnhandledAlertException |
class |
UnsupportedCommandException
Used to indicate that a command used by the remote webdriver is unsupported.
|
| 限定符和类型 | 方法和说明 |
|---|---|
<X> X |
TakesScreenshot.getScreenshotAs(OutputType<X> target)
Capture the screenshot and store it in the specified location.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
UnableToCreateProfileException |
| 限定符和类型 | 类和说明 |
|---|---|
class |
InvalidCoordinatesException
Indicates that the coordinates provided to an interactions operation are invalid.
|
class |
MoveTargetOutOfBoundsException
Indicates that the target provided to the actions move() method is invalid - outside of
the size of the window.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
SocketLock.lock(long timeoutInMillis) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
WindowsRegistryException |
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ErrorHandler.UnknownServerException
Exception used as a place holder if the server returns an error without a stack trace.
|
class |
JsonException |
class |
ScreenshotException |
class |
UnreachableBrowserException
Indicates there was a problem communicating with the browser being
controlled or the Selenium server.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Class<? extends WebDriverException> |
ErrorCodes.getExceptionType(int statusCode)
Returns the exception type that corresponds to the given
statusCode. |
Class<? extends WebDriverException> |
ErrorCodes.getExceptionType(String webdriverState) |
| 限定符和类型 | 方法和说明 |
|---|---|
<X> X |
RemoteWebElement.getScreenshotAs(OutputType<X> outputType) |
<X> X |
RemoteWebDriver.getScreenshotAs(OutputType<X> outputType) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ConnectionClosedException
Exception thrown when the connection to the SafariDriver is lost.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static SafariOptions |
SafariOptions.fromCapabilities(Capabilities capabilities)
Construct a
SafariOptions instance from given capabilites. |
| 限定符和类型 | 方法和说明 |
|---|---|
<X> X |
EventFiringWebDriver.getScreenshotAs(OutputType<X> target) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
UnexpectedTagNameException |