Expand description
tauri-wd provides a W3C WebDriver CLI and native, test-only automation
integration for Tauri applications.
The HTTP server is inert unless the app was launched with
TAURI_AUTOMATION=true. tauri-wd supplies the private port, bearer token,
and readiness channel automatically.
Modules§
- capabilities
- W3C capability parsing for launching Tauri applications.
- config
- driver
- WebDriver routing and session lifecycle management.
- error
- W3C WebDriver error responses.
- launcher
- Native Tauri application launching and process cleanup.
Constants§
- AUTOMATION_
ENV_ VAR - HEADLESS_
ENV_ VAR - Set by the driver when a session asks for
tauri:options.headless. The plugin keeps the webview window off the user’s screen (seeconceal_window) and, on macOS, runs the app as an accessory. - PORT_
ENV_ VAR - PROFILE_
DIR_ ENV_ VAR - READY_
FILE_ ENV_ VAR - STARTUP_
TIMEOUT_ ENV_ VAR - TOKEN_
ENV_ VAR
Functions§
- automation_
enabled - Returns whether this process was launched specifically for automation.
- automation_
profile_ dir - Returns the isolated per-session directory created by
tauri-wd. - headless_
enabled - Returns whether this automation process was asked to run headless.
- init
- Initializes the plugin. The server only starts in an automation process.
- init_
with_ port - Initializes the plugin with an explicit local port.
- serve
- Runs the
tauri-wdW3C WebDriver listener.