tauri-driver -p 4444
use thirtyfour::prelude::*;
use serde_json::{json, Map, Value};
let mut caps: Map<String, Value> = Map::new();
// Required for tauri-driver to know your app binary
// Build with:
// cargo tauri build
caps.insert(
"tauri:options".to_string(),
json!({
"application": "path/release/shivarthu-app"
}),
);
// Set browserName to "wry" as per tauri-driver expectations
caps.insert("browserName".to_string(), json!("wry"));
let driver = WebDriver::new("http://localhost:4444", caps).await.unwrap();
// Always remember to close the session.
driver.quit().await?;
fuser -n tcp -k 4444