Setup

bl is

Check element state (visible, enabled, checked, actionable)

Check element state (visible, enabled, checked, actionable)

Usage

bl is [OPTIONS]
bl is <command>

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

bl is visible

Check if an element is visible on the page

Usage

bl is visible <selector> [OPTIONS]

Arguments

ArgumentDescription
&lt;selector&gt;CSS selector of the element to check

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 is visible "h1"
# Prints true or false

bl is enabled

Check if an element is enabled

Usage

bl is enabled <selector> [OPTIONS]

Arguments

ArgumentDescription
&lt;selector&gt;CSS selector of the element to check

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 is enabled "button[type=submit]"
# Prints true or false

bl is checked

Check if a checkbox or radio is checked

Usage

bl is checked <selector> [OPTIONS]

Arguments

ArgumentDescription
&lt;selector&gt;CSS selector of the checkbox or radio to check

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 is checked "input[type=checkbox]"
# Prints true or false

bl is actionable

Check actionability of an element (Visible, Stable, ReceivesEvents, Enabled, Editable)

Usage

bl is actionable <url> <selector> [OPTIONS]

Arguments

ArgumentDescription
&lt;url&gt;URL to navigate to before checking
&lt;selector&gt;CSS selector of the element to check

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 is actionable https://example.com "a"
# Output:
# Checking actionability for selector: a
# ✓ Visible: true
# ✓ Stable: true
# ✓ ReceivesEvents: true
# ✓ Enabled: true
# ✗ Editable: false

On this page