1 | import type { BaseActionParams } from './base.js';
|
2 | import BaseAction from './base.js';
|
3 | import type { ChainablePromiseElement } from '../../types.js';
|
4 | export interface ScrollParams {
|
5 | |
6 |
|
7 |
|
8 | x: number;
|
9 | |
10 |
|
11 |
|
12 | y: number;
|
13 | |
14 |
|
15 |
|
16 | deltaX: number;
|
17 | |
18 |
|
19 |
|
20 | deltaY: number;
|
21 | |
22 |
|
23 |
|
24 | origin?: WebdriverIO.Element | ChainablePromiseElement;
|
25 | |
26 |
|
27 |
|
28 | duration: number;
|
29 | }
|
30 | export 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 |