Skip to main content

launch_chrome

Function launch_chrome 

Source
pub async fn launch_chrome(
    config: LaunchConfig,
    timeout: Duration,
) -> Result<ChromeProcess, ChromeError>
Expand description

Launch a Chrome process with the given configuration.

Polls the Chrome debug endpoint until it responds or the timeout expires.

ยงErrors

Returns ChromeError::LaunchFailed if the process cannot be spawned, or ChromeError::StartupTimeout if Chrome does not become ready in time.