UNPKG

webdriverio

Version:

Next-gen browser and mobile automation test framework for Node.js

30 lines 1.02 kB
import type { KeyAction, PointerAction, WheelAction } from '../../utils/actions/index.js'; /** * Allows to run multiple action interactions at once, e.g. to simulate a pinch zoom or hold a modifier key while * clicking. Build each action chain with [`browser.action()`](/docs/api/browser/action), then pass the chains to this * command. * * <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() ]) }); * </example> * * @alias browser.action * @type utility * */ export declare function actions(this: WebdriverIO.Browser, actions: (KeyAction | PointerAction | WheelAction)[]): Promise<void>; //# sourceMappingURL=actions.d.ts.map