Advanced
dialog
Handle JavaScript dialogs (alert, confirm, prompt). Auto-accept, auto-dismiss, or respond to prompts.
Usage
$ cdpilot dialog <subcmd> [<text>]Arguments
| Name | Required | Description |
|---|---|---|
subcmd | required | auto-accept, auto-dismiss, prompt <text>, or off |
Examples
Automatically accept all dialogs
$ npx cdpilot dialog auto-acceptAutomatically dismiss all dialogs
$ npx cdpilot dialog auto-dismissAccept a prompt dialog with a response
$ npx cdpilot dialog prompt "my answer"Disable automatic dialog handling
$ npx cdpilot dialog off