Skip to content

reaudito/shivarthu-app-tauri-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Running tauri-driver

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?;

Kill the port

fuser -n tcp -k 4444

About

Shivarthu Tauri App Tests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages