Expand description
Dialog event handling for browser automation.
This module provides a unified dialog manager that handles browser dialogs (alert, confirm, prompt, beforeunload) across different browser engines.
§Example
use browser_commander::core::dialog::{DialogEvent, DialogManager};
let mut manager = DialogManager::new();
// Register a handler that dismisses all dialogs
manager.on_dialog(|event| {
// In real usage, you would call event.dismiss() on the actual dialog object
println!("Dialog: {} - {}", event.dialog_type, event.message);
});Structs§
- Dialog
Event - Information about a dialog event.
- Dialog
Manager - Manages dialog event handlers for browser automation.
Enums§
- Dialog
Type - The type of browser dialog.
Type Aliases§
- Dialog
Handler - A type alias for dialog handler functions.