browserlane
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

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