app_launch
Launch a built Tauri app under WebDriver automation to interact with it programmatically via mouse and keyboard actions. Targets any local Tauri project by resolving its binary from Cargo.toml.
Instructions
Launch a built Tauri app under WebDriver automation so it can be clicked/typed into like a real user. Pass projectDir to target any local Tauri project (resolves the binary from its src-tauri/Cargo.toml + target/release|debug); defaults to the configured default project. Only one app session runs at a time — call app_close (or app_force_cleanup) before launching another. Errors loudly if the window never renders (usual causes: msedgedriver/WebView2 version mismatch, or a plain cargo build binary that points at devUrl).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Extra CLI args to launch the app with | |
| appPath | No | Explicit path to the built app binary, overrides projectDir lookup | |
| projectDir | No | Root of a Tauri project (contains src-tauri/). |