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.
How It Works
1. Version Detection
The service detects Edge version from:
- Windows Registry:
HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062} - WMIC query:
wmic datafile where name="C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe" get Version
2. Driver Check
Checks if msedgedriver.exe in PATH matches the detected Edge version (major version comparison).