Edge WebDriver on Windows
Overview
On Windows, Tauri applications use Microsoft Edge WebView2, which requires msedgedriver.exe for WebDriver automation. The tauri-service automatically handles Edge WebDriver version matching to prevent version mismatch errors.
The Problem
Tauri tests fail on Windows when your Edge browser version doesn't match the installed msedgedriver version:
Error: This version of Microsoft Edge WebDriver only supports Microsoft Edge version 144.
Current browser version is 143.0.3650.139
The Solution
The tauri-service automatically:
- Detects your Edge browser version from Windows registry
- Checks if a matching msedgedriver.exe exists
- Downloads the correct version if needed (enabled by default)
- Configures PATH to use the downloaded driver
Configuration
Auto-Download (Recommended)
By default, auto-download is enabled. Just use the service normally:
// wdio.conf.js
export const config = {
services: [
['tauri', {
application: './path/to/your-app.exe',
// autoDownloadEdgeDriver: true (default)
}]
]
};
Manual Management
Disable auto-download if you prefer to manage drivers yourself:
export const config = {
services: [
['tauri', {
application: './path/to/your-app.exe',
autoDownloadEdgeDriver: false
}]
]
};
With auto-download disabled, you must ensure msedgedriver matches your Edge version manually.