Alerts, Prompts, and Confirms
Instructions: Your automation script should interact with each button and handle the corresponding browser dialog.
- Click "Show Alert" and accept the alert.
- Click "Show Confirm" and accept it (OK). Then click it again and dismiss it (Cancel).
- Click "Show Prompt", enter some text (e.g., "Automation"), and accept it.
Validation: The output box will show the result of your interactions with the confirm and prompt dialogs.