Elements

bl mouse

Mouse control (click, move, down, up)

Mouse control (click, move, down, up)

Usage

bl mouse [OPTIONS]
bl mouse <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 mouse click

Click at coordinates or current position

Usage

bl mouse click [coords...] [OPTIONS]

Arguments

ArgumentDescription
[coords...]x and y coordinates (omit to click at the current position)

Options

OptionDescription
--button <value>Mouse button (0=left, 1=middle, 2=right) (default 0)
--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 mouse click 100 200
# Left click at (100, 200)

bl mouse click 100 200 --button 2
# Right click at (100, 200)

bl mouse click
# Left click at current position

bl mouse move

Move the mouse to coordinates

Usage

bl mouse move <coords...> [OPTIONS]

Arguments

ArgumentDescription
&lt;coords...&gt;x and y coordinates to move to

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 mouse move 100 200
# Move mouse to position (100, 200)

bl mouse down

Press a mouse button down

Usage

bl mouse down [OPTIONS]

Options

OptionDescription
--button <value>Mouse button (0=left, 1=middle, 2=right) (default 0)
--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 mouse down
# Press left mouse button

bl mouse down --button 2
# Press right mouse button

bl mouse up

Release a mouse button

Usage

bl mouse up [OPTIONS]

Options

OptionDescription
--button <value>Mouse button (0=left, 1=middle, 2=right) (default 0)
--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 mouse up
# Release left mouse button

bl mouse up --button 2
# Release right mouse button

On this page