tomation 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions.d.ts +48 -1
- package/dist/automation.d.ts +8 -2
- package/dist/main.cjs +1 -1977
- package/dist/main.d.ts +2 -2
- package/dist/main.js +836 -1311
- package/package.json +1 -1
package/dist/actions.d.ts
CHANGED
|
@@ -284,6 +284,53 @@ declare class PressTabKeyAction extends ActionOnElement {
|
|
|
284
284
|
tries: number;
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
|
+
declare class PressEnterKeyAction extends ActionOnElement {
|
|
288
|
+
constructor(uiElement: UIElement);
|
|
289
|
+
protected executeActionOnElement(): void;
|
|
290
|
+
getDescription(): string;
|
|
291
|
+
getJSON(): {
|
|
292
|
+
type: string;
|
|
293
|
+
id: string;
|
|
294
|
+
element: string;
|
|
295
|
+
description: string;
|
|
296
|
+
status: ACTION_STATUS;
|
|
297
|
+
error: string;
|
|
298
|
+
context: ActionContext;
|
|
299
|
+
tries: number;
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
declare enum KEY_MAP {
|
|
303
|
+
ESCAPE = "Escape",
|
|
304
|
+
ENTER = "Enter",
|
|
305
|
+
TAB = "Tab",
|
|
306
|
+
ARROW_DOWN = "ArrowDown",
|
|
307
|
+
ARROW_UP = "ArrowUp",
|
|
308
|
+
ARROW_LEFT = "ArrowLeft",
|
|
309
|
+
ARROW_RIGHT = "ArrowRight",
|
|
310
|
+
BACKSPACE = "Backspace",
|
|
311
|
+
DELETE = "Delete",
|
|
312
|
+
SHIFT = "Shift",
|
|
313
|
+
CONTROL = "Control",
|
|
314
|
+
ALT = "Alt",
|
|
315
|
+
META = "Meta"
|
|
316
|
+
}
|
|
317
|
+
declare class PressKeyAction extends ActionOnElement {
|
|
318
|
+
key: KEY_MAP;
|
|
319
|
+
constructor(uiElement: UIElement, key: KEY_MAP);
|
|
320
|
+
protected executeActionOnElement(): void;
|
|
321
|
+
getDescription(): string;
|
|
322
|
+
getJSON(): {
|
|
323
|
+
type: string;
|
|
324
|
+
key: KEY_MAP;
|
|
325
|
+
id: string;
|
|
326
|
+
element: string;
|
|
327
|
+
description: string;
|
|
328
|
+
status: ACTION_STATUS;
|
|
329
|
+
error: string;
|
|
330
|
+
context: ActionContext;
|
|
331
|
+
tries: number;
|
|
332
|
+
};
|
|
333
|
+
}
|
|
287
334
|
declare class UploadFileAction extends ActionOnElement {
|
|
288
335
|
file: File;
|
|
289
336
|
constructor(uiElement: UIElement, file: File);
|
|
@@ -393,4 +440,4 @@ declare class ReloadPageAction extends AbstractAction {
|
|
|
393
440
|
executeAction(): Promise<void>;
|
|
394
441
|
resetAction(): void;
|
|
395
442
|
}
|
|
396
|
-
export { AbstractAction, Action, ActionOnElement, ClickAction, SelectAction, TypeAction, TypePasswordAction, PressEscKeyAction, PressDownKeyAction, PressTabKeyAction, UploadFileAction, AssertTextIsAction, AssertContainsTextAction, AssertValueIsAction, AssertExistsAction, AssertNotExistsAction, SaveValueAction, WaitAction, WaitUntilElementRemovedAction, PauseAction, ManualAction, ReloadPageAction, ACTION_STATUS, };
|
|
443
|
+
export { AbstractAction, Action, ActionOnElement, ClickAction, SelectAction, TypeAction, TypePasswordAction, PressEscKeyAction, PressDownKeyAction, PressTabKeyAction, PressKeyAction, KEY_MAP, PressEnterKeyAction, UploadFileAction, AssertTextIsAction, AssertContainsTextAction, AssertValueIsAction, AssertExistsAction, AssertNotExistsAction, SaveValueAction, WaitAction, WaitUntilElementRemovedAction, PauseAction, ManualAction, ReloadPageAction, ACTION_STATUS, };
|
package/dist/automation.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractAction, ACTION_STATUS } from './actions';
|
|
1
|
+
import { AbstractAction, KEY_MAP, ACTION_STATUS } from './actions';
|
|
2
2
|
import { UIUtils } from "./ui-utils";
|
|
3
3
|
import { UIElement } from './ui-element-builder';
|
|
4
4
|
import DateUtils from './date-utils';
|
|
@@ -67,6 +67,12 @@ declare const PressDownKey: () => {
|
|
|
67
67
|
declare const PressTabKey: () => {
|
|
68
68
|
in: (uiElement: UIElement) => void;
|
|
69
69
|
};
|
|
70
|
+
declare const PressEnterKey: () => {
|
|
71
|
+
in: (uiElement: UIElement) => void;
|
|
72
|
+
};
|
|
73
|
+
declare const PressKey: (key: KEY_MAP) => {
|
|
74
|
+
in: (uiElement: UIElement) => void;
|
|
75
|
+
};
|
|
70
76
|
declare const TypePassword: (value: string) => {
|
|
71
77
|
in: (uiElement: UIElement) => void;
|
|
72
78
|
};
|
|
@@ -119,4 +125,4 @@ interface TomationOptions {
|
|
|
119
125
|
debug?: boolean;
|
|
120
126
|
}
|
|
121
127
|
export declare function tomation(options: TomationOptions): void;
|
|
122
|
-
export { Setup, AutomationInstance, Test, RunTest, Task, Click, Assert, Select, Type, TypePassword, ClearValue, PressEscKey, PressDownKey, PressTabKey, UploadFile, SaveValue, Wait, Pause, ManualTask, ReloadPage, DateUtils, AutomationEvents, EVENT_NAMES, TestSpeed, ACTION_STATUS, setAutomationLogs, };
|
|
128
|
+
export { Setup, AutomationInstance, Test, RunTest, Task, Click, Assert, Select, Type, TypePassword, ClearValue, PressEscKey, PressDownKey, PressTabKey, PressKey, PressEnterKey, KEY_MAP, UploadFile, SaveValue, Wait, Pause, ManualTask, ReloadPage, DateUtils, AutomationEvents, EVENT_NAMES, TestSpeed, ACTION_STATUS, setAutomationLogs, };
|