Back to Docs
Advanced

dialog

Handle JavaScript dialogs (alert, confirm, prompt). Auto-accept, auto-dismiss, or respond to prompts.

Usage

$ cdpilot dialog <subcmd> [<text>]

Arguments

NameRequiredDescription
subcmdrequiredauto-accept, auto-dismiss, prompt <text>, or off

Examples

Automatically accept all dialogs

$ npx cdpilot dialog auto-accept

Automatically dismiss all dialogs

$ npx cdpilot dialog auto-dismiss

Accept a prompt dialog with a response

$ npx cdpilot dialog prompt "my answer"

Disable automatic dialog handling

$ npx cdpilot dialog off