Skip to main content

Dioxus Service

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

@wdio/dioxus-service Version Downloads

WebdriverIO service for testing Dioxus desktop applications on Windows, Linux, and macOS.

Enables cross-platform E2E testing of Dioxus apps via the extensive WebdriverIO ecosystem.

Featuresโ€‹

  • ๐Ÿš— WebDriver server built into your app โ€” no separate driver to install on any platform
  • ๐Ÿ“ฆ Automatic Dioxus binary path detection
  • ๐ŸŒ Cross-platform support (Windows, Linux, macOS)
  • ๐Ÿ”— Full Dioxus API access via browser.dioxus.execute()
  • ๐Ÿงฉ Mocking support for Dioxus invoke commands
  • ๐Ÿ“Š Backend and frontend log capture
  • ๐Ÿ–ฅ๏ธ Multiremote testing support
  • ๐Ÿƒ Per-worker driver spawning for parallel testing
  • ๐ŸŒ Browser mode โ€” test the Dioxus frontend in plain Chrome against a dev server, no binary or driver required

Installationโ€‹

Install the service via npm:

npm install --save-dev @wdio/dioxus-service

Or with pnpm:

pnpm add -D @wdio/dioxus-service

Quick Startโ€‹

Get started in minutes with the Quick Start Guide.

Minimal Configurationโ€‹

Add to your wdio.conf.ts:

export const config = {
services: ['@wdio/dioxus-service'],

capabilities: [
{
browserName: 'dioxus',
'dioxus:options': {
// Debug build from `dx build --desktop` (Linux path; see the Quick Start for macOS and Windows)
application: './target/dx/my-app/debug/linux/app/my-app'
}
}
]
};

See Configuration Reference for all options.

Documentationโ€‹

Getting Started

Reference

Guides

Help & Support

Platform Supportโ€‹

PlatformSupported
Windowsโœ… Yes
Linuxโœ… Yes
macOSโœ… Yes

The WebDriver server runs inside your app on every platform, so there's no driver to install. See Platform Support for detailed information.

Example Projectsโ€‹

Check out the E2E test fixtures in the desktop-mobile repository for complete working examples.

Supportโ€‹

Having trouble? Here are some resources:

  1. Troubleshooting Guide - Solutions for common issues
  2. Platform Support - Platform-specific information
  3. GitHub Issues - Bug reports and feature requests
  4. WebdriverIO Forum - General community help and discussions

Contributingโ€‹

We welcome contributions! Please see our Development Guide for:

  • Setting up your development environment
  • Running tests
  • Code style guidelines
  • Pull request process

Quick start for contributors:

# Clone and install
git clone https://github.com/webdriverio/desktop-mobile.git
cd desktop-mobile
pnpm install

# Make your changes
# ...

# Run tests
pnpm test

# Submit a pull request

Licenseโ€‹

MIT License. See LICENSE file for details.

See Alsoโ€‹

Welcome! How can I help?

WebdriverIO AI Copilot