pub async fn detect(port: u16) -> Result<DetectedBrowser>Expand description
Multi-strategy browser detection.
Tries each strategy in order and returns the first successful result:
GTHINGS_CDP_WS_URLenvironment variable (fastest bypass).- HTTP GET
http://127.0.0.1:{port}/json/version— parseswebSocketDebuggerUrl. - HTTP GET
http://127.0.0.1:{port}/json— finds firstwebSocketDebuggerUrl. - HTTP GET
http://127.0.0.1:{port}/json/list— finds firstwebSocketDebuggerUrl. - DevToolsActivePort scan across 10+ browser profile directories on macOS.
Returns CdpError::BrowserNotFound if all strategies fail.