Handle dialog
browser_handle_dialogArm answers for alert, confirm, and prompt dialogs before triggering them, or answer an open dialog immediately to unblock the page.
Instructions
Answers an alert/confirm/prompt. A dialog blocks the page until it is answered, so an unanswered one is dismissed automatically rather than stalling the action that opened it. Call this BEFORE the action that triggers a dialog to arm the answer — that is the only way to accept one or supply prompt() text. Called while a dialog is open, it answers that dialog immediately.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accept | Yes | True to accept, false to dismiss. | |
| sessionId | Yes | Session id returned by browser_start. | |
| promptText | No | Text to enter into a prompt() dialog. |