Skip to main content

actions

Overview​

Use the actions command to perform multiple input actions on one of the virtualizable devices in the web browser, for example, to simulate page zooming. More detailed information is provided in the description of the action command.

Usage​

await browser.actions([action1, action2, ...]);

Usage Examples​

it("run multiple actions at once for a pinch zoom", async ({ browser }) => {
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(),
]);
});

References​

We'd like to give credit to the original WebdriverIO docs article, from which we drew some information while writing our version.