pub struct BrowserAgent { /* private fields */ }Implementations§
Source§impl BrowserAgent
impl BrowserAgent
pub async fn connect(host: &str, port: u16) -> Result<Self>
pub async fn connect_with_config(config: &Config) -> Result<Self>
Sourcepub fn from_client(client: CdpClient) -> Self
pub fn from_client(client: CdpClient) -> Self
Wrap an already-connected client (domains are the caller’s responsibility).
pub fn capture_console(&self) -> Receiver<ConsoleMessage>
pub async fn execute(&self, action: BrowserAction) -> ActionResult
pub async fn execute_many( &self, actions: Vec<BrowserAction>, ) -> Vec<ActionResult>
pub async fn execute_json(&self, json_str: &str) -> ActionResult
Auto Trait Implementations§
impl !RefUnwindSafe for BrowserAgent
impl !UnwindSafe for BrowserAgent
impl Freeze for BrowserAgent
impl Send for BrowserAgent
impl Sync for BrowserAgent
impl Unpin for BrowserAgent
impl UnsafeUnpin for BrowserAgent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more