双击
双击某个元素。
用法
$(selector).doubleClick()
示例
example.html
<button id="myButton" ondblclick="document.getElementById('someText').innerHTML='I was dblclicked'">Click me</button>
<div id="someText">I was not clicked</div>
doubleClick.js
it('should demonstrate the doubleClick command', async () => {
const myButton = await $('#myButton')
await myButton.doubleClick()
const value = await myButton.getText()
assert(value === 'I was dblclicked') // true
})