pub async fn launch_browser(
options: LaunchOptions,
) -> Result<LaunchResult, Error>Expand description
Launch a browser with the given options.
For the Chromiumoxide engine, this starts a Chromium process, waits for
the CDP handshake, opens a blank page, and returns a LaunchResult
containing both the metadata (browser) and a live page adapter (page)
implementing EngineAdapter.
For the Playwright and Puppeteer engines, this starts a local Node.js
subprocess and uses the official Node package as a CLI bridge. The selected
package must be available to Node module resolution, usually by running
npm install playwright or npm install puppeteer in the configured
node_working_dir.
The Fantoccini engine is not yet implemented as a managed launcher; use
chromiumoxide or connect to an externally-managed WebDriver session.
§Arguments
options- Launch options
§Returns
The launch result containing the browser metadata and a page adapter
§Errors
Returns an error if the browser fails to launch.