Tauri Service
@wdio/tauri-service is a 3rd party package, for more information please see GitHub | npm
WebdriverIO service for testing Tauri apps on Windows, Linux and macOS.
Features​
- A WebDriver server built into your app by default, so there's no driver to install
browser.tauri.execute(), to run JavaScript in the app and call its commands- Mocking of the app's commands
- Backend and frontend log capture
- Multiremote, and one app per worker for parallel runs
- Browser mode, to test the frontend in Chrome against a Vite dev server, without building the app
- With the
externalprovider, installs tauri-driver and matches msedgedriver to the WebView2 runtime on Windows
Installation​
npm install --save-dev @wdio/tauri-service
The service supports the current and maintenance versions of WebdriverIO (currently v9 and v10). To use it without the test runner (standalone mode), also install webdriverio:
npm install --save-dev webdriverio
Quick Start​
Get started in minutes with the Quick Start Guide.
Minimal Configuration​
Add to your wdio.conf.ts:
export const config = {
services: ['@wdio/tauri-service'],
capabilities: [
{
browserName: 'tauri',
'tauri:options': {
application: './src-tauri/target/debug/my-app', // my-app.exe on Windows
},
},
],
};
See Configuration Reference for all options.
Documentation​
Getting Started
- Quick Start Guide - Set up in minutes
- Plugin Setup - Install tauri-plugin-wdio
Reference
- Configuration - All service options
- API Reference - Complete API documentation
Guides
- Browser Mode - Test the renderer in Chrome without a Tauri binary
- Usage Examples - Common testing patterns
- Log Forwarding - Capture app logs
- Edge WebDriver (Windows) - Windows-specific setup
- Deeplink Testing - Test protocol handlers
- Visual Testing - Visual regression with
@wdio/visual-service - Video Recording - Record video of test runs with
wdio-video-reporter
Help & Support
- Troubleshooting - Common issues and solutions
Platform Support​
| Platform | Supported | Driver Providers | Notes |
|---|---|---|---|
| Windows | ✅ Yes | embedded, external, crabnebula | external auto-manages the Edge WebDriver |
| Linux | ✅ Yes | embedded, external, crabnebula | external requires WebKitWebDriver |
| macOS | ✅ Yes | embedded, crabnebula | Native via embedded, or CrabNebula |
See the Quick Start for each platform's requirements and the supported Linux distributions.
Choosing a driver provider (see ADR 0001 for the naming):
embedded(default, all platforms) — WebDriver runs inside your app; no external driver neededexternal— a separatetauri-driverprocess; Windows/Linux onlycrabnebula— CrabNebula's cross-platform driver; requires a subscription (CN_API_KEY for macOS)
Example Projects​
Check out the E2E test fixtures in the desktop-mobile repository for complete working examples.
Support​
- Troubleshooting covers common issues.
- Report bugs and request features in GitHub Issues.
- Ask questions in GitHub Discussions.
Contributing​
See CONTRIBUTING.md.
License​
MIT License. See LICENSE file for details.
See Also​
- WebdriverIO Documentation
- Tauri Documentation
- @wdio/electron-service - Similar service for Electron apps