pub async fn resolve_connection(
host: &str,
port: Option<u16>,
ws_url: Option<&str>,
) -> Result<ResolvedConnection, AppError>Expand description
Resolve a Chrome connection using the priority chain:
- Explicit
--ws-url - Explicit
--port(user provided, not the default) - Session file (with health check)
- Auto-discover (default host:port 9222)
- Error with suggestion
ยงErrors
Returns AppError if no Chrome connection can be resolved.