@luminati-io/webdriverio8
Version:
Next-gen browser and mobile automation test framework for Node.js
32 lines • 1.02 kB
TypeScript
export type ActionType = 'key' | 'pointer' | 'wheel';
export type KeyActionType = 'mouse' | 'pen' | 'touch';
export interface ActionParameters {
pointerType?: KeyActionType;
}
export interface BaseActionParams {
id?: string;
parameters?: ActionParameters;
}
export default class BaseAction {
#private;
protected instance: WebdriverIO.Browser;
protected sequence: any[];
constructor(instance: WebdriverIO.Browser, type: ActionType, params?: BaseActionParams);
toJSON(): {
id: string;
type: ActionType;
parameters: ActionParameters;
actions: any[];
};
/**
* Inserts a pause action for the specified device, ensuring it idles for a tick.
* @param duration idle time of tick
*/
pause(duration: number): this;
/**
* Perform action sequence
* @param skipRelease set to true if `releaseActions` command should not be invoked
*/
perform(skipRelease?: boolean): Promise<void>;
}
//# sourceMappingURL=base.d.ts.map