[][src]Enum thirtyfour::error::WebDriverError

#[non_exhaustive]pub enum WebDriverError {
    UnknownResponse(String),
    NotFound(StringString),
    Timeout(String),
    JsonError(Error),
    DecodeError(DecodeError),
    IOError(Error),
    ReqwestError(Error),
    NotInSpec(WebDriverErrorInfo),
    ElementClickIntercepted(WebDriverErrorInfo),
    ElementNotInteractable(WebDriverErrorInfo),
    InsecureCertificate(WebDriverErrorInfo),
    InvalidArgument(WebDriverErrorInfo),
    InvalidCookieDomain(WebDriverErrorInfo),
    InvalidElementState(WebDriverErrorInfo),
    InvalidSelector(WebDriverErrorInfo),
    InvalidSessionId(WebDriverErrorInfo),
    JavascriptError(WebDriverErrorInfo),
    MoveTargetOutOfBounds(WebDriverErrorInfo),
    NoSuchAlert(WebDriverErrorInfo),
    NoSuchCookie(WebDriverErrorInfo),
    NoSuchElement(WebDriverErrorInfo),
    NoSuchFrame(WebDriverErrorInfo),
    NoSuchWindow(WebDriverErrorInfo),
    ScriptTimeout(WebDriverErrorInfo),
    SessionNotCreated(WebDriverErrorInfo),
    StaleElementReference(WebDriverErrorInfo),
    WebDriverTimeout(WebDriverErrorInfo),
    UnableToSetCookie(WebDriverErrorInfo),
    UnableToCaptureScreen(WebDriverErrorInfo),
    UnexpectedAlertOpen(WebDriverErrorInfo),
    UnknownCommand(WebDriverErrorInfo),
    UnknownError(WebDriverErrorInfo),
    UnknownMethod(WebDriverErrorInfo),
    UnsupportedOperation(WebDriverErrorInfo),
}

WebDriverError is the main error type for thirtyfour

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnknownResponse(String)

The WebDriver server returned an unrecognised response: {0}

NotFound(StringString)

The requested item '{0}' was not found: {1}

Timeout(String)

operation timed out: {0}

JsonError(Error)

Unable to parse JSON: {0}

DecodeError(DecodeError)

Unable to decode base64: {0}

IOError(Error)

IO Error: {0}

ReqwestError(Error)

The WebDriver request returned an error: {0}

The WebDriver response does not conform to the W3C WebDriver spec: {0}

ElementClickIntercepted(WebDriverErrorInfo)

The click event was intercepted by another element: {0}

ElementNotInteractable(WebDriverErrorInfo)

The element is not interactable: {0}

InsecureCertificate(WebDriverErrorInfo)

The certificate is insecure: {0}

InvalidArgument(WebDriverErrorInfo)

An argument passed to the WebDriver server was invalid: {0}

InvalidCookieDomain(WebDriverErrorInfo)

Invalid cookie domain: {0}

InvalidElementState(WebDriverErrorInfo)

The element is in an invalid state: {0}

InvalidSelector(WebDriverErrorInfo)

The specified element selector is invalid: {0}

InvalidSessionId(WebDriverErrorInfo)

The WebDriver session id is invalid: {0}

JavascriptError(WebDriverErrorInfo)

The Javascript code returned an error: {0}

MoveTargetOutOfBounds(WebDriverErrorInfo)

Unable to scroll the element into the viewport: {0}

NoSuchAlert(WebDriverErrorInfo)

Alert not found: {0}

NoSuchCookie(WebDriverErrorInfo)

Cookie not found: {0}

NoSuchElement(WebDriverErrorInfo)

Element not found: {0}

NoSuchFrame(WebDriverErrorInfo)

Frame not found: {0}

NoSuchWindow(WebDriverErrorInfo)

Window not found: {0}

ScriptTimeout(WebDriverErrorInfo)

The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}

SessionNotCreated(WebDriverErrorInfo)

Unable to create WebDriver session: {0}

StaleElementReference(WebDriverErrorInfo)

Element is stale: {0}

WebDriverTimeout(WebDriverErrorInfo)

Operation timed out: {0}

UnableToSetCookie(WebDriverErrorInfo)

Unable to set cookie: {0}

UnableToCaptureScreen(WebDriverErrorInfo)

Unable to capture screenshot: {0}

UnexpectedAlertOpen(WebDriverErrorInfo)

An unexpected alert is currently open: {0}

UnknownCommand(WebDriverErrorInfo)

Unknown command: {0}

UnknownError(WebDriverErrorInfo)

Unknown error: {0}

UnknownMethod(WebDriverErrorInfo)

Unknown method: {0}

UnsupportedOperation(WebDriverErrorInfo)

Unsupport operation: {0}

Implementations

impl WebDriverError[src]

pub fn parse(status: u16, body: Value) -> Self[src]

Trait Implementations

impl Debug for WebDriverError[src]

impl Display for WebDriverError[src]

impl Error for WebDriverError[src]

impl From<DecodeError> for WebDriverError[src]

impl From<Error> for WebDriverError[src]

impl From<Error> for WebDriverError[src]

impl From<Error> for WebDriverError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.