Respond To Dialog
page_dialog_respondResolve pending JavaScript dialogs by accepting or dismissing alerts, confirms, and prompts, with optional text input for prompt dialogs.
Instructions
Accept or dismiss one pending alert, confirm, or prompt through a capability-probed native DrissionPage dialog path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| timeout | No | Maximum seconds to wait for a pending dialog. Zero checks immediately; an already-pending dialog still receives a bounded native response budget. | |
| prompt_text | No | Text for an accepted prompt. The value is never returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||