doubleClick
Double-click on an element based on given selector.
Usage
1 | browser.doubleClick(selector); |
Parameters
Param | Type | Details |
---|---|---|
selector | String | element to double click on. If it matches with more than one DOM-element it automatically clicks on the first element |
Example
1 | <button id="myButton" ondblclick="document.getElementById('someText').innerHTML='I was dblclicked'">Click me</button> |
1 | it('should demonstrate the doubleClick command', function () { |