Skip to main content
Double-click an element you’ve located with find():

element.doubleClick()

Double-clicks the element at the point where find() located it. It’s the same as element.click('double-click').
It takes no parameters.

Errors

Throws an ElementNotFoundError if find() didn’t locate the element. See click() for how to check found() first.

Double-click at coordinates

The client has no doubleClick() method. To double-click a point on the screen, pass action: 'double-click' to testdriver.click():
Prefer element.doubleClick(), which keeps working when the layout or screen size changes.

Examples

Open a file in VS Code

Select a word

Complete example

tests/open-file.test.mjs