dialog_handler
Automatically handle JavaScript dialog boxes in Electron apps by accepting or dismissing alerts, confirms, prompts, and beforeunload dialogs without manual intervention.
Instructions
Install an auto-responder for JavaScript dialogs (alert/confirm/prompt/beforeunload). Once set, the next dialog(s) will be auto-accepted or dismissed without a human. Pass action: "accept" or "dismiss", optional text for prompts, and once: true to auto-uninstall after the first dialog (default true).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Default accept. | |
| text | No | Text to enter in a prompt() dialog. | |
| once | No | Auto-uninstall after first dialog. Default true. |