MCPcopy Create free account
hub / github.com/aeroxy/chrome-devtools-cli / close_target

Method close_target

src/cdp.rs:752–756  ·  view source on GitHub ↗

Close a target by its target ID.

(&mut self, target_id: &str)

Source from the content-addressed store, hash-verified

750
751 /// Close a target by its target ID.
752 pub async fn close_target(&mut self, target_id: &str) -> Result<()> {
753 self.send("Target.closeTarget", json!({"targetId": target_id}))
754 .await?;
755 Ok(())
756 }
757
758 /// Collect CDP events for a given duration (milliseconds).
759 ///

Callers 2

new_pageFunction · 0.80
close_pageFunction · 0.80

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected