Skip to main content

Module dialog

Module dialog 

Source
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§

DialogEvent
Information about a dialog event.
DialogManager
Manages dialog event handlers for browser automation.

Enums§

DialogType
The type of browser dialog.

Type Aliases§

DialogHandler
A type alias for dialog handler functions.