Setup

bl count

Count matching elements

Count matching elements

Usage

bl count <selector> [OPTIONS]

Arguments

ArgumentDescription
&lt;selector&gt;CSS selector to count matches for

Options

OptionDescription
--headlessHide browser window (visible by default)
--jsonOutput as JSON
--session <value>Run this command in the named session (env: BL_SESSION; default: "default")

Global options

OptionDescription
-v, --verboseEnable debug logging

Examples

bl count "a"
# Print number of links on the page

bl count "li.item"
# Count list items

On this page