Close a target by its target ID.
(&mut self, target_id: &str)
| 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 | /// |
no test coverage detected