Elements
bl type
Type text into an element (optionally navigate to URL first)
Type text into an element (optionally navigate to URL first)
Usage
bl type <args...> [OPTIONS]Arguments
| Argument | Description |
|---|---|
<args...> | [url] selector text — optional URL to navigate first, then the selector and the text to type |
Options
| Option | Description |
|---|---|
--timeout <value> | Timeout for actionability checks (e.g., 5s, 30s) (default 30s) |
--nth <value> | Select the 0-based Nth match of the selector (default: first). Mutually exclusive with --last. |
--last | Select the last match of the selector. Mutually exclusive with --nth. |
--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 type "input" "12345"
# Types on current page
bl type ".field" "hi" --nth 2
# Type into the third matching field (0-based)
bl type https://the-internet.herokuapp.com/inputs "input" "12345"
# Navigates to URL first, then types
bl type https://the-internet.herokuapp.com/inputs "input" "12345" --timeout 5s
# Custom timeout for actionability checks