sdk.automation.doubleclick
Home > @matterway/sdk > Automation > doubleClick
Automation.doubleClick() function
Double clicks on an element with provided selector.
Signature:
export declare function doubleClick(ctx: Context, selector: string, options?: WaitForSelectorOptions): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
ctx | Context | Puppeteer context object. |
selector | string | Selector to double click. |
options | WaitForSelectorOptions | (Optional) |
Returns:
Promise<void>
Example
await doubleClick(ctx, 'button[id="add-item"]');