@openfin/automation-helpers
Version:
Helper methods for automation testing in the OpenFin ecosystem
31 lines (30 loc) • 734 B
TypeScript
/**
* W3C webdriver action group.
* See https://github.com/jlipps/simple-wd-spec#perform-actions .
*/
export interface IActionGroup {
/**
* Type.
*/
type: "pointer" | "key" | "wheel" | "none";
/**
* A unique id chosen to represent this input source for this and future actions.
*/
id: string;
/**
* The pointer type.
*/
pointerType?: "mouse" | "pen" | "touch";
/**
* Actions.
*/
actions: {
type: "pointerMove" | "pointerDown" | "pointerUp" | "keyDown" | "keyUp" | "pause";
button?: number;
x?: number;
y?: number;
duration?: number;
value?: string;
origin?: "viewport" | "pointer" | unknown;
}[];
}