[−][src]Enum fantoccini::error::CmdError
An error occurred while executing some browser action.
Variants
Standard(WebDriverError)
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(WebDriverError)
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.
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(IOError)
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.
A function was invoked with an invalid argument.
ImageDecodeError(DecodeError)
Could not decode a base64 image
Methods
impl CmdError
[src]
pub fn is_miss(&self) -> bool
[src]
Returns true if this error indicates that a matching element was not found.
Equivalent to
let is_miss = if let CmdError::NoSuchElement(..) = e { true } else { false };
Trait Implementations
impl From<Error> for CmdError
[src]
impl From<ParseError> for CmdError
[src]
fn from(e: ParseError) -> Self
[src]
impl From<Error> for CmdError
[src]
impl From<WebDriverError> for CmdError
[src]
fn from(e: WebDriverError) -> Self
[src]
impl From<Error> for CmdError
[src]
impl Display for CmdError
[src]
impl Debug for CmdError
[src]
impl Error for CmdError
[src]
Auto Trait Implementations
impl Send for CmdError
impl Unpin for CmdError
impl Sync for CmdError
impl !RefUnwindSafe for CmdError
impl !UnwindSafe for CmdError
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,