Skip to main content

drive_browser

Function drive_browser 

Source
pub async fn drive_browser<F, Fut, T>(
    url: &str,
    opts: BrowserDriveOptions,
    f: F,
) -> Result<T>
where F: FnOnce(Page) -> Fut, Fut: Future<Output = Result<T>>,
Expand description

Launch Firefox, navigate to url, run f with the live page, then tear down.