chromedriver_api/
error.rs1use macron::{ Display, Error, From };
2
3pub type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;
5
6#[derive(Debug, Display, Error, From)]
8pub enum Error {
9 #[display = "Incorrect session ID"]
10 IncorrectSessionId,
11
12 #[display = "Failed to connect to CDP (Chrome DevTools Protocol)"]
13 CdpConnectionFailed,
14
15 #[display = "CDP command execution failed"]
16 CdpCommandFailed,
17
18 #[display = "Element not found for the given selector"]
19 ElementNotFound,
20}