pub enum CmdError {
}
Expand description
An error occurred while executing some browser action.
Variants§
Standard(WebDriver)
A standard WebDriver error occurred.
See the spec for details about what each of these errors represent. Note that for
convenience NoSuchElement
has been extracted into its own top-level variant.
NoSuchElement(WebDriver)
No element was found matching the given locator.
This variant lifts the “no such element” error variant from Standard
to simplify
checking for it in user code.
It is also used for the “stale element reference” error variant.
NoSuchWindow(WebDriver)
The requested window does not exist.
This variant lifts the “no such window” error variant from Standard
to simplify
checking for it in user code.
NoSuchAlert(WebDriver)
The requested alert does not exist.
This variant lifts the “no such alert” error variant from Standard
to simplify
checking for it in user code.
BadUrl(ParseError)
A bad URL was encountered during parsing.
This normally happens if a link is clicked or the current URL is requested, but the URL in question is invalid or otherwise malformed.
Failed(Error)
A request to the WebDriver server failed.
Lost(Error)
The connection to the WebDriver server was lost.
NotJson(String)
The WebDriver server responded with a non-standard, non-JSON reply.
Json(Error)
The WebDriver server responded to a command with an invalid JSON response.
NotW3C(Value)
The WebDriver server produced a response that does not conform to the W3C WebDriver specification.
Note: if you are trying to use phantomjs
or chromedriver
, note that these WebDriver
implementations do not conform to the spec at this time. For example, chromedriver
does not place sessionId
for NewSession
or errors under the value
key in responses,
and does not correctly encode and decode WebElement
references.
InvalidArgument(String, String)
A function was invoked with an invalid argument.
ImageDecodeError(DecodeError)
Could not decode a base64 image
WaitTimeout
Timeout of a wait condition.
When waiting for a for a condition using Client::wait
, any of the
consuming methods, waiting on some condition, may return this error, indicating that the
timeout waiting for the condition occurred.