Lupa API Reference / commands/locator / DoubleClickOptions
Interface: DoubleClickOptions
Defined in: src/commands/locator.ts:301
Options for the double click action.
Extends
Properties
button?
optionalbutton?:"right"|"left"|"middle"
Defined in: src/commands/locator.ts:305
Defaults to left.
delay?
optionaldelay?:number
Defined in: src/commands/locator.ts:310
Time to wait between mousedown and mouseup in milliseconds. Defaults to 0.
force?
optionalforce?:boolean
Defined in: src/commands/locator.ts:176
Whether to bypass the actionability checks. Defaults to false.
Inherited from
modifiers?
optionalmodifiers?: ("Alt"|"Control"|"ControlOrMeta"|"Meta"|"Shift")[]
Defined in: src/commands/locator.ts:210
Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores current modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows and Linux and to "Meta" on macOS.
Inherited from
position?
optionalposition?:object
Defined in: src/commands/locator.ts:221
A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the element.
x
x:
number
X coordinate
y
y:
number
Y coordinate
Inherited from
steps?
optionalsteps?:number
Defined in: src/commands/locator.ts:316
Defaults to 1. Sends n interpolated mousemove events to represent travel between Playwright's current cursor position and the provided destination. When set to 1, emits a single mousemove event at the destination location.
timeout?
optionaltimeout?:number
Defined in: src/commands/locator.ts:166
Maximum time in milliseconds. Defaults to 0 - no timeout. The default value can be changed via actionTimeout option in the config, or by using the browserContext.setDefaultTimeout(timeout) or page.setDefaultTimeout(timeout) methods.
Inherited from
trial?
optionaltrial?:boolean
Defined in: src/commands/locator.ts:198
When set, this method only performs the actionability checks and skips the action. Defaults to false. Useful to wait until the element is ready for the action without performing it.