Skip to content

Function: doubleClick()

ts
function doubleClick(
   ctx: Context, 
   selector: string, 
options?: WaitForSelectorOptions): Promise<void>;

Defined in: src/mouse/index.ts:126

Double-click an element.

Parameters

ParameterTypeDescription
ctxContextContext object.
selectorstringCSS selector for the target element.
options?WaitForSelectorOptionsOptional wait settings.

Returns

Promise<void>

Example

ts
// Double-click a spreadsheet cell to enter edit mode
await doubleClick(ctx, 'td[data-cell="B7"]');

Matterway Assistant SDK Documentation