browserlane
CLI referenceInteraction

bl scroll

Scroll the page or an element

Scroll the page or an element

Usage

bl scroll [direction] [flags]
bl scroll [command]

Flags

FlagDescription
--amount intNumber of scroll increments (default 3)
--selector stringCSS selector for element to scroll to

Global flags

FlagDescription
--headlessHide browser window (visible by default)
--jsonOutput as JSON
-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] [flags]

Global flags

FlagDescription
--headlessHide browser window (visible by default)
--jsonOutput as JSON
-v, --verboseEnable debug logging

Examples

bl scroll into-view "#footer"
# Scroll the footer element into view (centered on screen)

On this page