UNPKG

930 BTypeScriptView Raw
1import type { BaseActionParams } from './base.js';
2import BaseAction from './base.js';
3import type { ChainablePromiseElement } from '../../types.js';
4export interface ScrollParams {
5 /**
6 * starting x coordinate
7 */
8 x: number;
9 /**
10 * starting y coordinate
11 */
12 y: number;
13 /**
14 * Delta X to scroll to target
15 */
16 deltaX: number;
17 /**
18 * Delta Y to scroll to target
19 */
20 deltaY: number;
21 /**
22 * element origin
23 */
24 origin?: WebdriverIO.Element | ChainablePromiseElement;
25 /**
26 * duration ratio be the ratio of time delta and duration
27 */
28 duration: number;
29}
30export default class WheelAction extends BaseAction {
31 constructor(instance: WebdriverIO.Browser, params?: BaseActionParams);
32 /**
33 * Scrolls a page to given coordinates or origin.
34 */
35 scroll(params?: Partial<ScrollParams>): this;
36}
37//# sourceMappingURL=wheel.d.ts.map
\No newline at end of file