browserlane
CLI referenceInteraction

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 [key] [selector] [flags]

Global flags

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