handleDialog
Control browser dialogs (alerts, confirms, prompts) by accepting, dismissing, or entering text. Simplify web automation workflows with precise dialog handling.
Instructions
Handle browser dialogs (alerts, confirms, prompts)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accept | Yes | Whether to accept (true) or dismiss (false) the dialog | |
| promptText | No | Text to enter in prompt dialogs (optional) |
Input Schema (JSON Schema)
{
"properties": {
"accept": {
"description": "Whether to accept (true) or dismiss (false) the dialog",
"type": "boolean"
},
"promptText": {
"description": "Text to enter in prompt dialogs (optional)",
"type": "string"
}
},
"required": [
"accept"
],
"type": "object"
}