Skip to main content

query_targets

Function query_targets 

Source
pub async fn query_targets(
    host: &str,
    port: u16,
) -> Result<Vec<TargetInfo>, ChromeError>
Expand description

Query Chrome’s /json/list endpoint for debuggable targets.

§Errors

Returns ChromeError::HttpError on connection failure or ChromeError::ParseError if the response cannot be deserialized.