Handle Dialog
browser.handle_dialogSet handling for upcoming browser dialogs like alerts, confirms, and prompts. Call before the action that triggers the dialog to accept or dismiss it with optional input.
Instructions
Set how the next native dialog (alert/confirm/prompt) will be handled. Call before the action that triggers the dialog.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accept | Yes | ||
| sessionId | Yes | ||
| promptText | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes |