Element Click
When called on an Element object, clicks on the located element.Syntax
Parameters
Type of click action:
'click', 'double-click', 'right-click', 'hover', 'mouseDown', 'mouseUp'Returns
Promise<void>
Examples
Coordinate Click
Click at specific screen coordinates.Syntax
Parameters
X coordinate
Y coordinate
Type of click:
'click', 'double-click', 'right-click', 'mouseDown', 'mouseUp'Returns
Promise<void>
Examples
Click Actions
Regular Click
Single left-click action.Double Click
Double-click action, commonly used to open files or select text.Right Click
Right-click to open context menus.Mouse Down / Mouse Up
For drag operations or custom click behavior.Best Practices
Prefer element clicks over coordinate clicksElement-based clicking is more reliable and resolution-independent:
Verify element was found
Use Cases
Opening Files
Opening Files
Drag and Drop
Drag and Drop
Complete Example
Related Methods
find()- Locate elements to clickhover()- Hover without clickingdoubleClick()- Dedicated double-click methodrightClick()- Dedicated right-click method

