Skip to main content

BrowserProcessHandle

Trait BrowserProcessHandle 

Source
pub trait BrowserProcessHandle: Send {
    // Required methods
    fn wait_for_devtools_ws_url(
        &mut self,
        timeout: Duration,
    ) -> BrowserLauncherFuture<'_, Result<String, String>>;
    fn shutdown(&mut self) -> BrowserLauncherFuture<'_, ()>;
}
Expand description

Owned handle to a running headless browser child process.

Required Methods§

Source

fn wait_for_devtools_ws_url( &mut self, timeout: Duration, ) -> BrowserLauncherFuture<'_, Result<String, String>>

Waits up to timeout for Chrome to print its DevTools ws:// URL on stderr.

Source

fn shutdown(&mut self) -> BrowserLauncherFuture<'_, ()>

Terminates the running browser process cleanly.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§