Appearance
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
| Parameter | Type | Description |
|---|---|---|
ctx | Context | Context object. |
selector | string | CSS selector for the target element. |
options? | WaitForSelectorOptions | Optional wait settings. |
Returns
Promise<void>
Example
ts
// Double-click a spreadsheet cell to enter edit mode
await doubleClick(ctx, 'td[data-cell="B7"]');