diff --git a/.changes/tauri-driver-1.x.md b/.changes/tauri-driver-1.x.md new file mode 100644 index 000000000000..ec12ef74c6fd --- /dev/null +++ b/.changes/tauri-driver-1.x.md @@ -0,0 +1,5 @@ +--- +"tauri-driver": patch:bug +--- + +support both 1.x and 2.x automation env vars in `tauri-driver` diff --git a/tooling/webdriver/src/webdriver.rs b/tooling/webdriver/src/webdriver.rs index 48e8ab2ca9df..6de4d41422d2 100644 --- a/tooling/webdriver/src/webdriver.rs +++ b/tooling/webdriver/src/webdriver.rs @@ -45,7 +45,8 @@ pub fn native(args: &Args) -> Command { }; let mut cmd = Command::new(native_binary); - cmd.env("TAURI_WEBVIEW_AUTOMATION", "true"); + cmd.env("TAURI_AUTOMATION", "true"); // 1.x + cmd.env("TAURI_WEBVIEW_AUTOMATION", "true"); // 2.x cmd.arg(format!("--port={}", args.native_port)); cmd.arg(format!("--host={}", args.native_host)); cmd