Skip to main content

Crate tauri_wd

Crate tauri_wd 

Source
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 (see conceal_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-wd W3C WebDriver listener.