Configuration
Complete guide to configuring @wdio/tauri-service in your WebdriverIO setup.
Service Configuration
Add the Tauri service to your wdio.conf.ts:
export const config = {
services: [
['@wdio/tauri-service', {
// Service options go here
autoInstallTauriDriver: true,
autoDownloadEdgeDriver: true,
captureBackendLogs: true,
captureFrontendLogs: true,
}]
],
// ... rest of config
};
Service Options
appBinaryPath (string, optional)
Path to the compiled Tauri application binary (executable).
Example:
appBinaryPath: './src-tauri/target/release/my-app.exe', // Windows
appBinaryPath: './src-tauri/target/release/my-app', // Linux
Default: Auto-detected from capabilities if not provided
Note: Path should be absolute or relative to the WebdriverIO config directory.
appArgs (string[], optional)
Command-line arguments to pass to the Tauri application when launching. Each array element is passed as a separate argument — no shell parsing is applied.
Example:
appArgs: ['--debug', '--log-level', 'debug']
// For key=value style arguments, use either form:
appArgs: ['--window-size', '1920,1080'] // Two separate elements
appArgs: ['--window-size=1920,1080'] // Single element with equals
Default: []
autoInstallTauriDriver (boolean, optional)
Automatically install tauri-driver if not found in PATH.
Requirements:
- Rust toolchain must be installed (
cargo) - First installation will take a few minutes
Example:
autoInstallTauriDriver: true
Default: false
Note: Disable if you have tauri-driver installed manually or globally.
autoDownloadEdgeDriver (boolean, optional)
Automatically download MSEdgeDriver on Windows if version mismatch detected.
Example:
autoDownloadEdgeDriver: true // Windows only
Default: true
Note: Windows only, ignored on Linux/macOS. See Edge WebDriver Windows.