Elements

bl scroll

Scroll the page or an element

Scroll the page or an element

Usage

bl scroll [direction] [OPTIONS]
bl scroll <command>

Arguments

ArgumentDescription
[direction]Scroll direction: up or down (default down)

Options

OptionDescription
--amount <value>Number of scroll increments (default 3)
--selector <value>CSS selector for element to scroll to
--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 scroll
# Scroll down by default

bl scroll up
# Scroll up

bl scroll down --amount 5
# Scroll down 5 increments

bl scroll down --selector "div.content"
# Scroll within a specific element

bl scroll into-view

Scroll an element into view

Usage

bl scroll into-view <selector> [OPTIONS]

Arguments

ArgumentDescription
&lt;selector&gt;CSS selector (or map ref) for the element to scroll into view

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 scroll into-view "#footer"
# Scroll the footer element into view (centered on screen)

On this page