Skip to content

Lupa API Reference / commands / MousePressOptions

Interface: MousePressOptions

Defined in: src/commands/mouse.ts:72

Options for pressing and holding a mouse button.

Properties

button?

optional button?: "right" | "left" | "middle"

Defined in: src/commands/mouse.ts:76

The mouse button to press. Defaults to left.


delay?

optional delay?: number

Defined in: src/commands/mouse.ts:86

Duration in milliseconds to hold the mouse button down before releasing. Defaults to 0.


key?

optional key?: string

Defined in: src/commands/mouse.ts:81

Optional keyboard key modifier to press down (e.g. 'Shift', 'Control', 'Alt', 'Meta') during the operation.