Taiko
Documentation

Home / API Reference

doubleClick

Fetches an element with the given selector, scrolls it into view if needed, and then double clicks the element. If there's no element matching selector, the method throws an error.

Examples

await doubleClick('Get Started')
await doubleClick(button('Get Started'))

Parameters


selector

A selector to search for element to click. If there are multiple elements satisfying the selector, the first will be double clicked.


options

options.waitForNavigation boolean

Wait for navigation after the click. Default navigation timout is 30 seconds, to override pass { navigationTimeout: 10000 } in options parameter.

Default value
true

args Array

Returns

Promise