1 | export type ActionType = 'key' | 'pointer' | 'wheel';
|
2 | export type KeyActionType = 'mouse' | 'pen' | 'touch';
|
3 | export interface ActionParameters {
|
4 | pointerType?: KeyActionType;
|
5 | }
|
6 | export interface BaseActionParams {
|
7 | id?: string;
|
8 | parameters?: ActionParameters;
|
9 | }
|
10 | export default class BaseAction {
|
11 | #private;
|
12 | protected instance: WebdriverIO.Browser;
|
13 | protected sequence: any[];
|
14 | constructor(instance: WebdriverIO.Browser, type: ActionType, params?: BaseActionParams);
|
15 | toJSON(): {
|
16 | id: string;
|
17 | type: ActionType;
|
18 | parameters: ActionParameters;
|
19 | actions: any[];
|
20 | };
|
21 | |
22 |
|
23 |
|
24 |
|
25 | pause(duration: number): this;
|
26 | |
27 |
|
28 |
|
29 |
|
30 | perform(skipRelease?: boolean): Promise<void>;
|
31 | }
|
32 |
|
\ | No newline at end of file |