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
| Argument | Description |
|---|---|
<args...> | key [selector] — the key (or combo) to press, optionally on a specific element |
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 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