Plugin Setup
Overview
The tauri-plugin-wdio is a required Tauri plugin that enables WebdriverIO testing of Tauri applications. It provides:
- Execute API - Run JavaScript code from tests with access to Tauri APIs
- Mocking Support - Mock Tauri backend commands for isolated testing
- Log Forwarding - Capture console logs from both frontend and backend
- Invoke Interception - Enable mocking without backend command modifications
Two WDIO Plugins
There are two Tauri plugins for WebdriverIO testing:
| Plugin | Package | Purpose | Required |
|---|---|---|---|
tauri-plugin-wdio | Rust + JS | Execute API, mocking, log forwarding | Yes |
tauri-plugin-wdio-webdriver | Rust only | Embedded WebDriver server | Only for embedded provider |