Ir al Contenido Principal

doubleClick

Double-click on an element.

Usage
$(selector).doubleClick()
Examples
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
})

Welcome! How can I help?

WebdriverIO AI Copilot