Skip to main content
🇺🇦  We stand with the people of Ukraine. We encourage compassion, and hope for peace.   🇺🇦
Please support humanitarian efforts for the Ukraine crisis through the International Committee of the Red Cross! #StandWithUkraine

actions

Allows to run multiple action interaction at once, e.g. to simulate a pinch zoom. For more information on the action command, check out the docs.

Usage
browser.actions()
Example
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.