Expand description
Error types and result aliases.
All fallible operations return Result<T> which uses Error.
Error types for Firefox WebDriver.
This module defines all error types used throughout the crate. Error codes follow ARCHITECTURE.md Section 6.2.
§Usage
All fallible operations return Result<T> which uses Error:
ⓘ
use firefox_webdriver::{Result, Error};
async fn example(tab: &Tab) -> Result<()> {
let element = tab.find_element("#submit").await?;
element.click().await?;
Ok(())
}§Error Categories
| Category | Variants |
|---|---|
| Configuration | Error::Config, Error::Profile |
| Connection | Error::Connection, Error::ConnectionTimeout, Error::ConnectionClosed |
| Protocol | Error::UnknownCommand, Error::InvalidArgument, Error::Protocol |
| Element | Error::ElementNotFound, Error::StaleElement |
| Navigation | Error::FrameNotFound, Error::TabNotFound |
| Execution | Error::ScriptError, Error::Timeout, Error::RequestTimeout |
| External | Error::Io, Error::Json, Error::WebSocket |
Enums§
- Error
- Main error type for the crate.