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

Method activate_target

src/cdp.rs:734–738  ·  view source on GitHub ↗

Bring a target to the foreground.

(&mut self, target_id: &str)

Source from the content-addressed store, hash-verified

732
733 /// Bring a target to the foreground.
734 pub async fn activate_target(&mut self, target_id: &str) -> Result<()> {
735 self.send("Target.activateTarget", json!({"targetId": target_id}))
736 .await?;
737 Ok(())
738 }
739
740 /// Create a new page target and return its target ID.
741 pub async fn create_target(&mut self, url: &str) -> Result<String> {

Callers 1

select_pageFunction · 0.80

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected