pub enum ErrorStatus {
Show 31 variants DetachedShadowRoot, ElementClickIntercepted, ElementNotInteractable, ElementNotSelectable, InsecureCertificate, InvalidArgument, InvalidCookieDomain, InvalidCoordinates, InvalidElementState, InvalidSelector, InvalidSessionId, JavascriptError, MoveTargetOutOfBounds, NoSuchAlert, NoSuchCookie, NoSuchElement, NoSuchFrame, NoSuchShadowRoot, NoSuchWindow, ScriptTimeout, SessionNotCreated, StaleElementReference, Timeout, UnableToCaptureScreen, UnableToSetCookie, UnexpectedAlertOpen, UnknownCommand, UnknownError, UnknownMethod, UnknownPath, UnsupportedOperation,
}

Variants§

§

DetachedShadowRoot

The [element]’s [ShadowRoot] is not attached to the active document, or the reference is stale [element]: ../common/struct.WebElement.html [ShadowRoot]: ../common/struct.ShadowRoot.html

§

ElementClickIntercepted

The ElementClick command could not be completed because the element receiving the events is obscuring the element that was requested clicked.

§

ElementNotInteractable

A command could not be completed because the element is not pointer- or keyboard interactable.

§

ElementNotSelectable

An attempt was made to select an element that cannot be selected.

§

InsecureCertificate

Navigation caused the user agent to hit a certificate warning, which is usually the result of an expired or invalid TLS certificate.

§

InvalidArgument

The arguments passed to a command are either invalid or malformed.

§

InvalidCookieDomain

An illegal attempt was made to set a cookie under a different domain than the current page.

§

InvalidCoordinates

The coordinates provided to an interactions operation are invalid.

§

InvalidElementState

A command could not be completed because the element is an invalid state, e.g. attempting to click an element that is no longer attached to the document.

§

InvalidSelector

Argument was an invalid selector.

§

InvalidSessionId

Occurs if the given session ID is not in the list of active sessions, meaning the session either does not exist or that it’s not active.

§

JavascriptError

An error occurred while executing JavaScript supplied by the user.

§

MoveTargetOutOfBounds

The target for mouse interaction is not in the browser’s viewport and cannot be brought into that viewport.

§

NoSuchAlert

An attempt was made to operate on a modal dialogue when one was not open.

§

NoSuchCookie

No cookie matching the given path name was found amongst the associated cookies of the current browsing context’s active document.

§

NoSuchElement

An element could not be located on the page using the given search parameters.

§

NoSuchFrame

A command to switch to a frame could not be satisfied because the frame could not be found.

§

NoSuchShadowRoot

An element’s ShadowRoot was not found attached to the element.

§

NoSuchWindow

A command to switch to a window could not be satisfied because the window could not be found.

§

ScriptTimeout

A script did not complete before its timeout expired.

§

SessionNotCreated

A new session could not be created.

§

StaleElementReference

A command failed because the referenced element is no longer attached to the DOM.

§

Timeout

An operation did not complete before its timeout expired.

§

UnableToCaptureScreen

A screen capture was made impossible.

§

UnableToSetCookie

Setting the cookie’s value could not be done.

§

UnexpectedAlertOpen

A modal dialogue was open, blocking this operation.

§

UnknownCommand

The requested command could not be executed because it does not exist.

§

UnknownError

An unknown error occurred in the remote end whilst processing the command.

§

UnknownMethod

The requested command matched a known endpoint, but did not match a method for that endpoint.

§

UnknownPath

§

UnsupportedOperation

Indicates that a [command] that should have executed properly is not currently supported.

Implementations§

source§

impl ErrorStatus

source

pub fn error_code(&self) -> &'static str

Returns the string serialisation of the error type.

source

pub fn http_status(&self) -> StatusCode

Returns the correct HTTP status code associated with the error type.

Trait Implementations§

source§

impl Debug for ErrorStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ErrorStatus

source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<String> for ErrorStatus

Deserialises error type from string.

source§

fn from(s: String) -> ErrorStatus

Converts to this type from the input type.
source§

impl PartialEq<ErrorStatus> for ErrorStatus

source§

fn eq(&self, other: &ErrorStatus) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for ErrorStatus

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for ErrorStatus

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,