pub struct WebDriverError(/* private fields */);Expand description
WebDriverError is the main error type for thirtyfour
Implementations§
Source§impl WebDriverError
impl WebDriverError
pub fn UnknownResponse(a: u16, b: String) -> WebDriverError
pub fn RequestFailed(a: String) -> WebDriverError
pub fn NotFound(a: String, b: String) -> WebDriverError
pub fn ParseError(a: String) -> WebDriverError
pub fn Timeout(a: String) -> WebDriverError
pub fn Json(a: String) -> WebDriverError
pub fn DecodeError(a: DecodeError) -> WebDriverError
pub fn IoError(a: Error) -> WebDriverError
pub fn HttpError(a: String) -> WebDriverError
pub fn NotInSpec(a: WebDriverErrorInfo) -> WebDriverError
pub fn ElementClickIntercepted(a: WebDriverErrorInfo) -> WebDriverError
pub fn ElementNotInteractable(a: WebDriverErrorInfo) -> WebDriverError
pub fn InsecureCertificate(a: WebDriverErrorInfo) -> WebDriverError
pub fn InvalidArgument(a: WebDriverErrorInfo) -> WebDriverError
pub fn InvalidUrl(a: ParseError) -> WebDriverError
pub fn InvalidCookieDomain(a: WebDriverErrorInfo) -> WebDriverError
pub fn InvalidElementState(a: WebDriverErrorInfo) -> WebDriverError
pub fn InvalidSelector(a: WebDriverErrorInfo) -> WebDriverError
pub fn InvalidSessionId(a: WebDriverErrorInfo) -> WebDriverError
pub fn JavascriptError(a: WebDriverErrorInfo) -> WebDriverError
pub fn MoveTargetOutOfBounds(a: WebDriverErrorInfo) -> WebDriverError
pub fn NoSuchAlert(a: WebDriverErrorInfo) -> WebDriverError
pub fn NoSuchCookie(a: WebDriverErrorInfo) -> WebDriverError
pub fn NoSuchElement(a: WebDriverErrorInfo) -> WebDriverError
pub fn NoSuchFrame(a: WebDriverErrorInfo) -> WebDriverError
pub fn NoSuchWindow(a: WebDriverErrorInfo) -> WebDriverError
pub fn ScriptTimeout(a: WebDriverErrorInfo) -> WebDriverError
pub fn SessionNotCreated(a: WebDriverErrorInfo) -> WebDriverError
pub fn StaleElementReference(a: WebDriverErrorInfo) -> WebDriverError
pub fn WebDriverTimeout(a: WebDriverErrorInfo) -> WebDriverError
pub fn UnableToSetCookie(a: WebDriverErrorInfo) -> WebDriverError
pub fn UnableToCaptureScreen(a: WebDriverErrorInfo) -> WebDriverError
pub fn UnexpectedAlertOpen(a: WebDriverErrorInfo) -> WebDriverError
pub fn UnknownCommand(a: WebDriverErrorInfo) -> WebDriverError
pub fn UnknownError(a: WebDriverErrorInfo) -> WebDriverError
pub fn UnknownMethod(a: WebDriverErrorInfo) -> WebDriverError
pub fn UnsupportedOperation(a: WebDriverErrorInfo) -> WebDriverError
pub fn FatalError(a: String) -> WebDriverError
pub fn CommandRecvError(a: String) -> WebDriverError
pub fn CommandSendError(a: String) -> WebDriverError
pub fn SessionCreateError(a: String) -> WebDriverError
Source§impl WebDriverError
impl WebDriverError
Sourcepub fn parse(status: u16, body: String) -> WebDriverError
pub fn parse(status: u16, body: String) -> WebDriverError
Create a new WebDriverError by parsing the response from the WebDriver server.
Sourcepub fn as_inner(&self) -> &WebDriverErrorInner
pub fn as_inner(&self) -> &WebDriverErrorInner
gets a reference to the underlying enum representation of this error
Sourcepub fn from_inner(err: WebDriverErrorInner) -> WebDriverError
pub fn from_inner(err: WebDriverErrorInner) -> WebDriverError
converts the underlying representation to the main representation
Sourcepub fn into_inner(self) -> WebDriverErrorInner
pub fn into_inner(self) -> WebDriverErrorInner
converts this error to its underlying representation
Trait Implementations§
Source§impl Debug for WebDriverError
impl Debug for WebDriverError
Source§impl Deref for WebDriverError
impl Deref for WebDriverError
Source§type Target = WebDriverErrorInner
type Target = WebDriverErrorInner
The resulting type after dereferencing.
Source§impl DerefMut for WebDriverError
impl DerefMut for WebDriverError
Source§impl Display for WebDriverError
impl Display for WebDriverError
Source§impl Error for WebDriverError
impl Error for WebDriverError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CdpError> for WebDriverError
impl From<CdpError> for WebDriverError
Source§fn from(e: CdpError) -> WebDriverError
fn from(e: CdpError) -> WebDriverError
Converts to this type from the input type.
Source§impl From<DecodeError> for WebDriverError
impl From<DecodeError> for WebDriverError
Source§fn from(val: DecodeError) -> WebDriverError
fn from(val: DecodeError) -> WebDriverError
Converts to this type from the input type.
Source§impl From<Error> for WebDriverError
impl From<Error> for WebDriverError
Source§fn from(val: Error) -> WebDriverError
fn from(val: Error) -> WebDriverError
Converts to this type from the input type.
Source§impl From<Error> for WebDriverError
Available on crate feature reqwest only.
impl From<Error> for WebDriverError
Available on crate feature
reqwest only.Source§fn from(err: Error) -> WebDriverError
fn from(err: Error) -> WebDriverError
Converts to this type from the input type.
Source§impl From<Error> for WebDriverError
impl From<Error> for WebDriverError
Source§fn from(err: Error) -> WebDriverError
fn from(err: Error) -> WebDriverError
Converts to this type from the input type.
Source§impl From<InvalidHeaderValue> for WebDriverError
impl From<InvalidHeaderValue> for WebDriverError
Source§fn from(err: InvalidHeaderValue) -> WebDriverError
fn from(err: InvalidHeaderValue) -> WebDriverError
Converts to this type from the input type.
Source§impl From<ManagerError> for WebDriverError
Available on crate feature manager only.
impl From<ManagerError> for WebDriverError
Available on crate feature
manager only.Source§fn from(e: ManagerError) -> WebDriverError
fn from(e: ManagerError) -> WebDriverError
Converts to this type from the input type.
Source§impl From<WebDriverErrorInner> for WebDriverError
impl From<WebDriverErrorInner> for WebDriverError
Source§fn from(value: WebDriverErrorInner) -> WebDriverError
fn from(value: WebDriverErrorInner) -> WebDriverError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for WebDriverError
impl !UnwindSafe for WebDriverError
impl Freeze for WebDriverError
impl Send for WebDriverError
impl Sync for WebDriverError
impl Unpin for WebDriverError
impl UnsafeUnpin for WebDriverError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more