Overview
ThedoubleClick() method performs a double-click action on an element. You can either call it on an Element instance or use it directly with a selector.
Syntax
Parameters
When called on anElement, no parameters are required.
When called directly on the AI client:
| Parameter | Type | Description |
|---|---|---|
selector | string | The selector describing the element to double-click |
Returns
Returns aPromise<void> that resolves when the double-click action completes.
Examples
Double-Click on Found Element
Direct Double-Click with Selector
Opening Files in VS Code
Opening Folders in File Manager
Selecting Text with Double-Click
Related Methods
click()- Single click on an elementrightClick()- Right-click to open context menumouseDown()- Press mouse button without releasingmouseUp()- Release mouse buttonhover()- Move mouse over element without clicking

