Skip to content

Commit

Permalink
support 1.x automation env var in tauri-driver (#10738)
Browse files Browse the repository at this point in the history
* support 1.x and 2.x automation env var

* changefile
  • Loading branch information
chippers authored Aug 22, 2024
1 parent f4d5241 commit 5f64ed2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/tauri-driver-1.x.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri-driver": patch:bug
---

support both 1.x and 2.x automation env vars in `tauri-driver`
3 changes: 2 additions & 1 deletion tooling/webdriver/src/webdriver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5f64ed2

Please sign in to comment.