tomation 0.0.3 → 0.0.5
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 +12 -3
- package/dist/main.cjs +1 -1977
- package/dist/main.d.ts +2 -2
- package/dist/main.js +857 -1311
- package/package.json +2 -2
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';
|
|
@@ -12,8 +12,11 @@ declare enum EVENT_NAMES {
|
|
|
12
12
|
TEST_FAILED = "tomation-test-failed",
|
|
13
13
|
TEST_END = "tomation-test-end",
|
|
14
14
|
TEST_STOP = "tomation-test-stop",
|
|
15
|
+
TEST_PAUSE = "tomation-test-pause",
|
|
16
|
+
TEST_PLAY = "tomation-test-play",
|
|
15
17
|
USER_ACCEPT = "tomation-user-accept",
|
|
16
|
-
USER_REJECT = "tomation-user-reject"
|
|
18
|
+
USER_REJECT = "tomation-user-reject",
|
|
19
|
+
SESSION_INIT = "tomation-session-init"
|
|
17
20
|
}
|
|
18
21
|
type AutomationEventHandlerType = ((action?: any) => void);
|
|
19
22
|
declare class EventDispatcher {
|
|
@@ -67,6 +70,12 @@ declare const PressDownKey: () => {
|
|
|
67
70
|
declare const PressTabKey: () => {
|
|
68
71
|
in: (uiElement: UIElement) => void;
|
|
69
72
|
};
|
|
73
|
+
declare const PressEnterKey: () => {
|
|
74
|
+
in: (uiElement: UIElement) => void;
|
|
75
|
+
};
|
|
76
|
+
declare const PressKey: (key: KEY_MAP) => {
|
|
77
|
+
in: (uiElement: UIElement) => void;
|
|
78
|
+
};
|
|
70
79
|
declare const TypePassword: (value: string) => {
|
|
71
80
|
in: (uiElement: UIElement) => void;
|
|
72
81
|
};
|
|
@@ -119,4 +128,4 @@ interface TomationOptions {
|
|
|
119
128
|
debug?: boolean;
|
|
120
129
|
}
|
|
121
130
|
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, };
|
|
131
|
+
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, };
|