pub async fn ensure_started(
browser: Option<String>,
headless: bool,
no_wait: bool,
wait_timeout: u64,
) -> Result<StartResult>Expand description
Ensure a browser of the requested kind is running and registered.
This is the programmatic form of browser-control start: it reuses the
most recent live registry row for the selected kind, otherwise launches a
new browser with the same default profile semantics as the CLI command.
When no kind is requested, an installed browser the user already has running (even one browser-control never launched or registered) is preferred over the hardcoded detection order — so a manually-opened browser wins over blindly starting whichever kind is first on the platform’s candidate list.