pub enum BrowserError {
Show 21 variants
ChromeNotFound,
ChromeForTestingNotFound(String),
ChromeSandboxAccess {
directory: PathBuf,
principals: Vec<&'static str>,
fix: String,
},
Launch(String),
Profile(String),
ProfileInUse(String),
Cdp(String),
StaleRef(String),
NoElement(String),
Ambiguous(String, u64),
NotInteractable(String),
UnknownPage(String),
UnknownKey(String),
Timeout(String),
Invalid(String),
Denied(String),
Blocked(PolicyDenial),
Consent(String),
Unsupported(String),
Stop(String),
Io(Error),
}Variants§
ChromeNotFound
ChromeForTestingNotFound(String)
Chrome for Testing was not found (or an explicit path is missing); carries what was searched and how to install it.
ChromeSandboxAccess
Windows: Chrome’s sandbox cannot read the browser in directory (the access list
lacks read and execute for the AppContainer principals in principals), so its
network service would crash at startup and navigations would hang or abort. Nothing
was launched. fix is the command that grants the access; an installer that unpacks
Chrome into a directory outside Program Files runs it once after unpacking.
Launch(String)
Profile(String)
ProfileInUse(String)
Cdp(String)
StaleRef(String)
NoElement(String)
Ambiguous(String, u64)
NotInteractable(String)
UnknownPage(String)
UnknownKey(String)
Timeout(String)
Invalid(String)
Denied(String)
The caller’s admission hook refused the effect before it happened.
Blocked(PolicyDenial)
The network (SSRF/host) policy refused a URL before any request left the machine.
Consent(String)
The user’s consent receipt is missing, revoked, expired or does not cover the request.
Unsupported(String)
The requested real-session mode does not exist for this browser.
Stop(String)
Chrome’s process tree did not stop cleanly when the session was closed.
Io(Error)
Trait Implementations§
Source§impl Debug for BrowserError
impl Debug for BrowserError
Source§impl Display for BrowserError
impl Display for BrowserError
Source§impl Error for BrowserError
impl Error for BrowserError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()