CLI referenceInspect page
bl text
Get text content of the page or an element
Get text content of the page or an element
Usage
bl text [selector] [flags]Global flags
| Flag | Description |
|---|---|
--headless | Hide browser window (visible by default) |
--json | Output as JSON |
-v, --verbose | Enable debug logging |
Examples
bl text
# Get all page text
bl text "h1"
# Get text of a specific element
bl text https://example.com
# Navigate then get all page text
bl text https://example.com "h1"
# Navigate then get element text