Aller au contenu principal

actions

Permet d'exécuter plusieurs interactions d'action à la fois, par exemple pour simuler un zoom par pincement. Pour plus d'informations sur la commande action, consultez la documentation.

Utilisation
browser.actions()
Exemple
action.js
it('run multiple actions at once for a pinch zoom', async () => {
await browser.actions([
browser.action('pointer')
.move(500, 500)
.down()
.move(250, 250)
.up(),
browser.action('pointer')
.move(500, 500)
.down()
.move(750, 750)
.up()
])
});

Welcome! How can I help?

WebdriverIO AI Copilot