Bring a target to the foreground.
(&mut self, target_id: &str)
| 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> { |