Skip to main content

Tauri Service

@wdio/tauri-service is a 3rd party package, for more information please see GitHub | npm

@wdio/tauri-service Version Downloads

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 external provider, 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

Reference

Guides

Help & Support

Platform Support​

PlatformSupportedDriver ProvidersNotes
Windows✅ Yesembedded, external, crabnebulaexternal auto-manages the Edge WebDriver
Linux✅ Yesembedded, external, crabnebulaexternal requires WebKitWebDriver
macOS✅ Yesembedded, crabnebulaNative 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 needed
  • external — a separate tauri-driver process; Windows/Linux only
  • crabnebula — 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​

Contributing​

See CONTRIBUTING.md.

License​

MIT License. See LICENSE file for details.

See Also​

Welcome! How can I help?

WebdriverIO AI Copilot