Elements
bl hover
Hover over an element by CSS selector
Hover over an element by CSS selector
Usage
bl hover <args...> [OPTIONS]Arguments
| Argument | Description |
|---|---|
<args...> | [url] selector — optional URL to navigate first, then the selector to hover |
Options
| Option | Description |
|---|---|
--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 hover "a"
# Hover over first link
bl hover ".card" --nth 2
# Hover the third matching card (0-based)
bl hover ".card" --last
# Hover the last matching card
bl hover https://example.com "a"
# Navigate then hover