browserlane
CLI referenceBrowser state & emulation

bl dialog

Handle browser dialogs (alert, confirm, prompt)

Handle browser dialogs (alert, confirm, prompt)

Usage

bl dialog [flags]
bl dialog [command]

Global flags

FlagDescription
--headlessHide browser window (visible by default)
--jsonOutput as JSON
-v, --verboseEnable debug logging

bl dialog accept

Accept a dialog (optionally with prompt text)

Usage

bl dialog accept [text] [flags]

Global flags

FlagDescription
--headlessHide browser window (visible by default)
--jsonOutput as JSON
-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 [flags]

Global flags

FlagDescription
--headlessHide browser window (visible by default)
--jsonOutput as JSON
-v, --verboseEnable debug logging

Examples

bl dialog dismiss
# Dismiss/cancel a dialog

On this page