| Crates.io | tauri-plugin-automation |
| lib.rs | tauri-plugin-automation |
| version | 0.1.1 |
| created_at | 2025-06-09 19:56:36.435322+00 |
| updated_at | 2025-06-18 21:53:29.869883+00 |
| description | Tauri plugin for automation via WebDriver |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1706352 |
| size | 144,163 |
Enable cross-platform integration tests for Tauri apps using CrabNebula Webdriver for Tauri.
DO NOT include the automation plugin for production builds. This kind of instrumentation should only be available for test-only builds.
cd src-tauri
cargo add tauri-plugin-automation
Make sure you register the plugin as early as possible using tauri::Builder::plugin instead of AppHandle#plugin so it is ready when your app starts.
ALWAYS use a conditional compilation check to make sure the automation plugin is not added for production builds.
let mut builder = tauri::Builder::default();
#[cfg(debug_assertions)] // alternatively: #[cfg(feature = "automation")]
{
builder = builder.plugin(tauri_plugin_automation::init());
}
builder
.run(tauri::generate_context!())
.expect("error while running tauri application");