Bridge Setup
Overview
The wdio-dioxus-bridge is a required Rust crate that enables WebdriverIO testing of Dioxus desktop applications. It provides:
- Execute API - Run JavaScript code from tests with access to Dioxus IPC (
invoke) - Mocking Support - Mock Dioxus backend commands for isolated testing
- Log Forwarding - Capture console logs from both the frontend webview and Rust backend
- Invoke Interception - Enable mocking without modifying backend command handlers
Unlike Tauri's plugin system, Dioxus has no plugin-trait interface. The bridge is therefore a plain Rust crate (not a plugin) that wires itself into the Dioxus desktop::Config via a single install() call. It uses a wdio:// custom protocol registered on the webview to communicate with the WDIO service process.
No capability permission system is involved — the bridge communicates through its own protocol channel, not through Dioxus's IPC machinery.