Dialogs

bl dialog

Handle browser dialogs (alert, confirm, prompt) — inspect, wait, accept, dismiss

Handle browser dialogs (alert, confirm, prompt) — inspect, wait, accept, dismiss

Usage

bl dialog [OPTIONS]
bl dialog <command>

Options

OptionDescription
--headlessHide browser window (visible by default)
--jsonOutput as JSON
--session <value>Run this command in the named session (env: BL_SESSION; default: "default")

Global options

OptionDescription
-v, --verboseEnable debug logging

bl dialog accept

Accept a dialog (optionally with prompt text)

Usage

bl dialog accept [text] [OPTIONS]

Arguments

ArgumentDescription
[text]Text to enter into a prompt dialog before accepting

Options

OptionDescription
--headlessHide browser window (visible by default)
--jsonOutput as JSON
--session <value>Run this command in the named session (env: BL_SESSION; default: "default")

Global options

OptionDescription
-v, --verboseEnable debug logging

Examples

bl dialog accept
# Accept an alert or confirm dialog

bl dialog accept "my input"
# Accept a prompt dialog with text

bl dialog dismiss

Dismiss a dialog

Usage

bl dialog dismiss [OPTIONS]

Options

OptionDescription
--headlessHide browser window (visible by default)
--jsonOutput as JSON
--session <value>Run this command in the named session (env: BL_SESSION; default: "default")

Global options

OptionDescription
-v, --verboseEnable debug logging

Examples

bl dialog dismiss
# Dismiss/cancel a dialog

bl dialog wait

Wait for a dialog to open and print its type and message

Usage

bl dialog wait [OPTIONS]

Options

OptionDescription
--timeout <value>Timeout in milliseconds (default 30000)
--headlessHide browser window (visible by default)
--jsonOutput as JSON
--session <value>Run this command in the named session (env: BL_SESSION; default: "default")

Global options

OptionDescription
-v, --verboseEnable debug logging

Examples

bl dialog wait
# {"open":true,"context":"...","type":"confirm","message":"Delete?"}

bl dialog wait --timeout 5000
# Wait up to 5 seconds

bl dialog info

Show the currently open dialog, if any

Usage

bl dialog info [OPTIONS]

Options

OptionDescription
--headlessHide browser window (visible by default)
--jsonOutput as JSON
--session <value>Run this command in the named session (env: BL_SESSION; default: "default")

Global options

OptionDescription
-v, --verboseEnable debug logging

Examples

bl dialog info
# Prints the open dialog's type/message, or "No dialog open"

On this page