1.02 kBTypeScriptView Raw
1export type ActionType = 'key' | 'pointer' | 'wheel';
2export type KeyActionType = 'mouse' | 'pen' | 'touch';
3export interface ActionParameters {
4 pointerType?: KeyActionType;
5}
6export interface BaseActionParams {
7 id?: string;
8 parameters?: ActionParameters;
9}
10export 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 * Inserts a pause action for the specified device, ensuring it idles for a tick.
23 * @param duration idle time of tick
24 */
25 pause(duration: number): this;
26 /**
27 * Perform action sequence
28 * @param skipRelease set to true if `releaseActions` command should not be invoked
29 */
30 perform(skipRelease?: boolean): Promise<void>;
31}
32//# sourceMappingURL=base.d.ts.map
\No newline at end of file