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
| Option | Description |
|---|---|
--headless | Hide browser window (visible by default) |
--json | Output as JSON |
--session <value> | Run this command in the named session (env: BL_SESSION; default: "default") |
Global options
| Option | Description |
|---|---|
-v, --verbose | Enable debug logging |
bl dialog accept
Accept a dialog (optionally with prompt text)
Usage
bl dialog accept [text] [OPTIONS]Arguments
| Argument | Description |
|---|---|
[text] | Text to enter into a prompt dialog before accepting |
Options
| Option | Description |
|---|---|
--headless | Hide browser window (visible by default) |
--json | Output as JSON |
--session <value> | Run this command in the named session (env: BL_SESSION; default: "default") |
Global options
| Option | Description |
|---|---|
-v, --verbose | Enable debug logging |
Examples
bl dialog accept
# Accept an alert or confirm dialog
bl dialog accept "my input"
# Accept a prompt dialog with textbl dialog dismiss
Dismiss a dialog
Usage
bl dialog dismiss [OPTIONS]Options
| Option | Description |
|---|---|
--headless | Hide browser window (visible by default) |
--json | Output as JSON |
--session <value> | Run this command in the named session (env: BL_SESSION; default: "default") |
Global options
| Option | Description |
|---|---|
-v, --verbose | Enable debug logging |
Examples
bl dialog dismiss
# Dismiss/cancel a dialogbl dialog wait
Wait for a dialog to open and print its type and message
Usage
bl dialog wait [OPTIONS]Options
| Option | Description |
|---|---|
--timeout <value> | Timeout in milliseconds (default 30000) |
--headless | Hide browser window (visible by default) |
--json | Output as JSON |
--session <value> | Run this command in the named session (env: BL_SESSION; default: "default") |
Global options
| Option | Description |
|---|---|
-v, --verbose | Enable debug logging |
Examples
bl dialog wait
# {"open":true,"context":"...","type":"confirm","message":"Delete?"}
bl dialog wait --timeout 5000
# Wait up to 5 secondsbl dialog info
Show the currently open dialog, if any
Usage
bl dialog info [OPTIONS]Options
| Option | Description |
|---|---|
--headless | Hide browser window (visible by default) |
--json | Output as JSON |
--session <value> | Run this command in the named session (env: BL_SESSION; default: "default") |
Global options
| Option | Description |
|---|---|
-v, --verbose | Enable debug logging |
Examples
bl dialog info
# Prints the open dialog's type/message, or "No dialog open"