doubleClick

Double-click on an element based on given selector.

Usage

1
client.doubleClick(selector).then(callback);

Parameters

Param Type Details
selector String element to double click on. If it matches with more than on DOM-element it automatically clicks on the first element

Example

example.html
1
2
<button id="myButton" ondblclick="document.getElementById('someText').innerHTML='I was dblclicked'">Click me</button>
<div id="someText">I was not clicked</div>
doubleClick.js
1
2
3
4
5
client
.doubleClick('#myButton')
.getText('#someText').then(function(value) {
assert(value === 'I was dblclicked'); // true
});

Uses