Elements

bl press

Press a key on a specific element or the focused element

Press a key on a specific element or the focused element

Usage

bl press <args...> [OPTIONS]

Arguments

ArgumentDescription
&lt;args...&gt;key [selector] — the key (or combo) to press, optionally on a specific element

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 press Enter
# Press Enter on the currently focused element

bl press Enter "input[name=search]"
# Click to focus the input, then press Enter

bl press "Control+a"
# Select all

On this page