tomation 0.0.10 → 0.0.12

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.
@@ -1,4 +1,4 @@
1
- import { UIElement } from "./ui-element-builder";
1
+ import { UIElement } from '../dsl/ui-element';
2
2
  interface ActionContext {
3
3
  url: string;
4
4
  beforeHTML: string;
@@ -59,7 +59,6 @@ declare class Action extends AbstractAction {
59
59
  error: string;
60
60
  };
61
61
  resetAction(): void;
62
- private handlePause;
63
62
  continue(): Promise<void>;
64
63
  executeAction(): Promise<void>;
65
64
  setParams(params?: any): void;
@@ -441,44 +440,4 @@ declare class ReloadPageAction extends AbstractAction {
441
440
  executeAction(): Promise<void>;
442
441
  resetAction(): void;
443
442
  }
444
- declare class IfAction extends AbstractAction {
445
- condition: () => boolean | Promise<boolean>;
446
- ifAction: Action;
447
- elseAction?: Action;
448
- conditionDescription: string;
449
- constructor(condition: () => boolean | Promise<boolean>, ifAction: Action, elseAction?: Action, conditionDescription?: string);
450
- getDescription(): string;
451
- getJSON(): {
452
- type: string;
453
- conditionDescription: string;
454
- ifAction: {
455
- type: string;
456
- params: any;
457
- steps: Object[];
458
- id: string;
459
- description: string;
460
- context: ActionContext;
461
- status: ACTION_STATUS;
462
- error: string;
463
- };
464
- elseAction: {
465
- type: string;
466
- params: any;
467
- steps: Object[];
468
- id: string;
469
- description: string;
470
- context: ActionContext;
471
- status: ACTION_STATUS;
472
- error: string;
473
- } | undefined;
474
- id: string;
475
- description: string;
476
- context: ActionContext;
477
- status: ACTION_STATUS;
478
- error: string;
479
- };
480
- executeAction(): Promise<void>;
481
- resetAction(): void;
482
- compileSteps(): void;
483
- }
484
- 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, IfAction, 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, };
@@ -0,0 +1,53 @@
1
+ import { UIElement } from './ui-element';
2
+ import { KEY_MAP } from '../dom/actions';
3
+ declare const Click: (uiElement: UIElement) => void;
4
+ declare const Assert: (uiElement: UIElement) => {
5
+ textIs: (text: string) => void;
6
+ containsText: (text: string) => void;
7
+ valueIs: (value: string) => void;
8
+ exists: () => void;
9
+ notExists: () => void;
10
+ };
11
+ declare const Select: (value: string) => {
12
+ in: (uiElement: UIElement) => void;
13
+ };
14
+ declare const Type: (value: string) => {
15
+ in: (uiElement: UIElement) => void;
16
+ };
17
+ declare const ClearValue: () => {
18
+ in: (uiElement: UIElement) => void;
19
+ };
20
+ declare const PressEscKey: () => {
21
+ in: (uiElement: UIElement) => void;
22
+ };
23
+ declare const PressDownKey: () => {
24
+ in: (uiElement: UIElement) => void;
25
+ };
26
+ declare const PressTabKey: () => {
27
+ in: (uiElement: UIElement) => void;
28
+ };
29
+ declare const PressEnterKey: () => {
30
+ in: (uiElement: UIElement) => void;
31
+ };
32
+ declare const PressKey: (key: KEY_MAP) => {
33
+ in: (uiElement: UIElement) => void;
34
+ };
35
+ declare const TypePassword: (value: string) => {
36
+ in: (uiElement: UIElement) => void;
37
+ };
38
+ declare const UploadFile: (file: File) => {
39
+ in: (uiElement: UIElement) => void;
40
+ };
41
+ declare const SaveValue: (uiElement: UIElement) => {
42
+ in: (memorySlotName: string) => void;
43
+ };
44
+ declare const Wait: {
45
+ (miliseconds: number): void;
46
+ untilElement(uiElement: UIElement): {
47
+ isRemoved: () => void;
48
+ };
49
+ };
50
+ declare const Pause: () => void;
51
+ declare const ManualTask: (description: string) => void;
52
+ declare const ReloadPage: () => void;
53
+ export { Click, Assert, Select, Type, ClearValue, PressEscKey, PressDownKey, PressTabKey, PressEnterKey, PressKey, TypePassword, UploadFile, SaveValue, Wait, Pause, ManualTask, ReloadPage };
@@ -0,0 +1,2 @@
1
+ declare const Task: <T>(id: string, steps: (params: T) => void) => (params?: T) => Promise<void>;
2
+ export { Task };
@@ -0,0 +1,4 @@
1
+ declare const TestsMap: any;
2
+ declare const RunTest: (id: string) => void;
3
+ declare const Test: (id: string, steps: () => void) => void;
4
+ export { Test, RunTest, TestsMap };
@@ -0,0 +1,12 @@
1
+ declare const setFilterLogs: (enabled: boolean) => void;
2
+ declare const classIs: (className: string) => (elem: HTMLElement) => boolean;
3
+ declare const classIncludes: (className: string) => (elem: HTMLElement) => boolean;
4
+ declare const innerTextIs: (text: string) => (elem: HTMLElement) => boolean;
5
+ declare const innerTextContains: (text: string) => (elem: HTMLElement) => boolean;
6
+ declare const titleIs: (text: string) => (elem: HTMLElement) => boolean;
7
+ declare const placeholderIs: (text: string) => (elem: HTMLElement) => boolean;
8
+ declare const isFirstElement: () => (elem: HTMLElement, index: number) => index is 0;
9
+ declare const elementIndexIs: (index: number) => (elem: HTMLElement, elemIndex: number) => boolean;
10
+ declare const firstChildTextIs: (text: string) => (elem: HTMLElement) => boolean;
11
+ declare const and: (conditions: any[]) => (elem: HTMLElement, elemIndex: number) => boolean;
12
+ export { classIs, classIncludes, innerTextIs, innerTextContains, titleIs, placeholderIs, isFirstElement, elementIndexIs, firstChildTextIs, and, setFilterLogs, };
@@ -7,21 +7,9 @@ declare class UIElement {
7
7
  getElementName(): string;
8
8
  }
9
9
  declare const setDocument: (doc: Document) => void;
10
- declare const SelectorBuilder: (query: string, filterFn?: ((value: HTMLElement, index: number, array: readonly HTMLElement[]) => Boolean) | undefined) => (root?: Document, postProcess?: ((elem: HTMLElement) => HTMLElement) | undefined) => HTMLElement;
11
- declare const setFilterLogs: (enabled: boolean) => void;
12
- declare const classIs: (className: string) => (elem: HTMLElement) => boolean;
13
- declare const classIncludes: (className: string) => (elem: HTMLElement) => boolean;
14
- declare const innerTextIs: (text: string) => (elem: HTMLElement) => boolean;
15
- declare const innerTextContains: (text: string) => (elem: HTMLElement) => boolean;
16
- declare const titleIs: (text: string) => (elem: HTMLElement) => boolean;
17
- declare const placeholderIs: (text: string) => (elem: HTMLElement) => boolean;
18
- declare const isFirstElement: () => (elem: HTMLElement, index: number) => boolean;
19
- declare const elementIndexIs: (index: number) => (elem: HTMLElement, elemIndex: number) => boolean;
20
- declare const firstChildTextIs: (text: string) => (elem: HTMLElement) => boolean;
21
- declare const and: (conditions: any[]) => (elem: HTMLElement, elemIndex: number) => boolean;
22
10
  declare const is: {
23
11
  DIV: {
24
- where: (filterFn?: ((value: HTMLElement, index: number, array: readonly HTMLElement[]) => Boolean) | undefined) => {
12
+ where: (filterFn?: (value: HTMLElement, index: number, array: readonly HTMLElement[]) => Boolean) => {
25
13
  childOf: (parent: UIElement) => {
26
14
  /**
27
15
  * Tansform the UI element that will be returned
@@ -65,7 +53,7 @@ declare const is: {
65
53
  };
66
54
  };
67
55
  BUTTON: {
68
- where: (filterFn?: ((value: HTMLElement, index: number, array: readonly HTMLElement[]) => Boolean) | undefined) => {
56
+ where: (filterFn?: (value: HTMLElement, index: number, array: readonly HTMLElement[]) => Boolean) => {
69
57
  childOf: (parent: UIElement) => {
70
58
  /**
71
59
  * Tansform the UI element that will be returned
@@ -109,7 +97,7 @@ declare const is: {
109
97
  };
110
98
  };
111
99
  INPUT: {
112
- where: (filterFn?: ((value: HTMLElement, index: number, array: readonly HTMLElement[]) => Boolean) | undefined) => {
100
+ where: (filterFn?: (value: HTMLElement, index: number, array: readonly HTMLElement[]) => Boolean) => {
113
101
  childOf: (parent: UIElement) => {
114
102
  /**
115
103
  * Tansform the UI element that will be returned
@@ -153,7 +141,7 @@ declare const is: {
153
141
  };
154
142
  };
155
143
  TEXTAREA: {
156
- where: (filterFn?: ((value: HTMLElement, index: number, array: readonly HTMLElement[]) => Boolean) | undefined) => {
144
+ where: (filterFn?: (value: HTMLElement, index: number, array: readonly HTMLElement[]) => Boolean) => {
157
145
  childOf: (parent: UIElement) => {
158
146
  /**
159
147
  * Tansform the UI element that will be returned
@@ -197,7 +185,7 @@ declare const is: {
197
185
  };
198
186
  };
199
187
  ELEMENT: (htmlTag: string) => {
200
- where: (filterFn?: ((value: HTMLElement, index: number, array: readonly HTMLElement[]) => Boolean) | undefined) => {
188
+ where: (filterFn?: (value: HTMLElement, index: number, array: readonly HTMLElement[]) => Boolean) => {
201
189
  childOf: (parent: UIElement) => {
202
190
  /**
203
191
  * Tansform the UI element that will be returned
@@ -283,4 +271,4 @@ declare const is: {
283
271
  as: (uiElementId: string) => UIElement;
284
272
  };
285
273
  };
286
- export { setDocument, UIElement, SelectorBuilder, is, classIs, classIncludes, innerTextIs, innerTextContains, titleIs, placeholderIs, isFirstElement, elementIndexIs, firstChildTextIs, and, setFilterLogs };
274
+ export { UIElement, is, setDocument };
@@ -0,0 +1,8 @@
1
+ import { AbstractAction, Action } from '~/dom/actions';
2
+ export declare const AutomationCompiler: {
3
+ init: (startAction: Action) => void;
4
+ addAction: (action: AbstractAction) => void;
5
+ compileAction: (action: Action) => void;
6
+ getCurrentAction: () => Action;
7
+ getIsCompiling: () => boolean;
8
+ };
@@ -0,0 +1,27 @@
1
+ declare enum EVENT_NAMES {
2
+ ACTION_UPDATE = "tomation-action-update",
3
+ SAVE_VALUE = "tomation-save-value",
4
+ REGISTER_TEST = "tomation-register-test",
5
+ TEST_STARTED = "tomation-test-started",
6
+ TEST_PASSED = "tomation-test-passed",
7
+ TEST_FAILED = "tomation-test-failed",
8
+ TEST_END = "tomation-test-end",
9
+ TEST_STOP = "tomation-test-stop",
10
+ TEST_PAUSE = "tomation-test-pause",
11
+ TEST_PLAY = "tomation-test-play",
12
+ USER_ACCEPT = "tomation-user-accept",
13
+ USER_REJECT = "tomation-user-reject",
14
+ SESSION_INIT = "tomation-session-init",
15
+ URL_MISMATCH = "tomation-url-mismatch",
16
+ SESSION_CONNECTED = "tomation-session-connected"
17
+ }
18
+ type AutomationEventHandlerType = ((action?: any) => void);
19
+ declare class EventDispatcher {
20
+ events: Map<EVENT_NAMES, Array<AutomationEventHandlerType>>;
21
+ constructor();
22
+ on(eventName: EVENT_NAMES, callback: AutomationEventHandlerType): void;
23
+ off(eventName: EVENT_NAMES, callback: AutomationEventHandlerType): void;
24
+ dispatch(eventName: EVENT_NAMES, data?: any): void;
25
+ }
26
+ declare const AutomationEvents: EventDispatcher;
27
+ export { EVENT_NAMES, AutomationEvents };
@@ -0,0 +1,49 @@
1
+ import { AbstractAction, Action } from '~/dom/actions';
2
+ import { UIUtils } from '~/feedback/ui-utils';
3
+ declare enum TestSpeed {
4
+ SLOW = 2000,
5
+ NORMAL = 1000,
6
+ FAST = 200
7
+ }
8
+ declare enum TestPlayStatus {
9
+ PLAYING = "Playing",
10
+ STOPPED = "Stopped",
11
+ PAUSED = "Paused"
12
+ }
13
+ declare enum RunMode {
14
+ NORMAL = "Normal",
15
+ STEPBYSTEP = "Step By Step"
16
+ }
17
+ declare class Automation {
18
+ private _document;
19
+ debug: Boolean;
20
+ private _uiUtils;
21
+ speed: TestSpeed;
22
+ status: TestPlayStatus;
23
+ runMode: RunMode;
24
+ currentActionCallback: ((action: AbstractAction) => {}) | undefined;
25
+ currentAction: AbstractAction | undefined;
26
+ constructor(window: Window);
27
+ get document(): Document;
28
+ get uiUtils(): UIUtils;
29
+ get isStepByStepMode(): boolean;
30
+ get isStopped(): boolean;
31
+ get isPlaying(): boolean;
32
+ get isPaused(): boolean;
33
+ pause(): void;
34
+ continue(): void;
35
+ next(): void;
36
+ stop(): void;
37
+ retryAction(): void;
38
+ skipAction(): void;
39
+ saveCurrentAction(callback: (action: AbstractAction) => {}, action: AbstractAction): void;
40
+ setDebug(value: boolean): void;
41
+ }
42
+ declare let AutomationInstance: Automation;
43
+ declare const Setup: (window: Window, tests?: Array<any>) => Automation;
44
+ declare function start(startAction: Action): Promise<void>;
45
+ declare const AutomationRunner: {
46
+ start: typeof start;
47
+ readonly running: boolean;
48
+ };
49
+ export { AutomationRunner, TestPlayStatus, TestSpeed, RunMode, Setup, AutomationInstance };
@@ -0,0 +1,7 @@
1
+ export declare const logger: {
2
+ setEnabled(value: boolean): void;
3
+ log(...args: any[]): void;
4
+ groupCollapsed(...args: any[]): void;
5
+ groupEnd(): void;
6
+ error(...args: any[]): void;
7
+ };
@@ -0,0 +1,13 @@
1
+ import { classIs, classIncludes, innerTextIs, innerTextContains, titleIs, placeholderIs, isFirstElement, elementIndexIs, firstChildTextIs, and } from './dsl/ui-element-filters';
2
+ import { is, UIElement } from './dsl/ui-element';
3
+ import { Test } from './dsl/test';
4
+ import { tomation } from './tomation';
5
+ import { wait } from './feedback/ui-utils';
6
+ import { Task } from './dsl/task';
7
+ import { Select, Click, Type, TypePassword, ClearValue, Assert, PressEscKey, PressDownKey, PressTabKey, PressKey, PressEnterKey, UploadFile, SaveValue, Wait, Pause, ManualTask, ReloadPage } from './dsl/actions';
8
+ import { default as DateUtils } from './utils/date-utils';
9
+ import { AutomationEvents, EVENT_NAMES } from './engine/events';
10
+ import { AutomationInstance, Setup, TestSpeed } from './engine/runner';
11
+ import { ACTION_STATUS, KEY_MAP } from './dom/actions';
12
+ export default tomation;
13
+ export { tomation, UIElement, is, classIs, classIncludes, innerTextIs, innerTextContains, titleIs, placeholderIs, isFirstElement, elementIndexIs, firstChildTextIs, and, Test, Task, Click, Assert, Select, Type, TypePassword, ClearValue, PressEscKey, PressDownKey, PressTabKey, PressKey, PressEnterKey, KEY_MAP, UploadFile, SaveValue, Wait, Pause, ManualTask, ReloadPage, DateUtils, AutomationEvents, AutomationInstance, Setup, EVENT_NAMES, TestSpeed, wait, ACTION_STATUS, };
@@ -0,0 +1,9 @@
1
+ import { TestSpeed } from './engine/runner';
2
+ interface TomationOptions {
3
+ matches: string | RegExp;
4
+ tests: any[];
5
+ speed?: keyof typeof TestSpeed;
6
+ debug?: boolean;
7
+ }
8
+ declare function tomation(options: TomationOptions): void;
9
+ export { tomation, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tomation",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -21,24 +21,20 @@
21
21
  "test": "vitest",
22
22
  "coverage": "vitest run --coverage"
23
23
  },
24
- "resolutions": {
25
- "rollup": "2.74.1"
26
- },
27
24
  "dependencies": {
28
- "uuid": "^9.0.0"
25
+ "uuid": "^14.0.0"
29
26
  },
30
27
  "devDependencies": {
31
- "@types/jsdom": "^27.0.0",
32
- "@types/node": "^20.19.30",
33
- "@types/uuid": "^9.0.2",
34
- "@vitest/coverage-v8": "^1.5.0",
35
- "@vitest/ui": "^1.5.0",
36
- "jsdom": "^22.1.0",
37
- "prettier": "2.6.2",
38
- "tslib": "^2.4.0",
39
- "typescript": "^4.7.2",
40
- "vite": "^5.2.9",
41
- "vite-plugin-dts": "^3.5.2",
42
- "vitest": "^1.5.0"
28
+ "@types/jsdom": "^28.0.1",
29
+ "@types/node": "^25.6.0",
30
+ "@vitest/coverage-v8": "^4.1.5",
31
+ "@vitest/ui": "^4.1.5",
32
+ "jsdom": "^29.1.0",
33
+ "prettier": "3.8.3",
34
+ "tslib": "^2.8.1",
35
+ "typescript": "^6.0.3",
36
+ "vite": "^8.0.10",
37
+ "vite-plugin-dts": "^4.5.4",
38
+ "vitest": "^4.1.5"
43
39
  }
44
40
  }
@@ -1,137 +0,0 @@
1
- import { AbstractAction, Action, KEY_MAP, ACTION_STATUS } from './actions';
2
- import { UIUtils } from "./ui-utils";
3
- import { UIElement } from './ui-element-builder';
4
- import DateUtils from './date-utils';
5
- declare const setAutomationLogs: (enabled: boolean) => void;
6
- declare enum EVENT_NAMES {
7
- ACTION_UPDATE = "tomation-action-update",
8
- SAVE_VALUE = "tomation-save-value",
9
- REGISTER_TEST = "tomation-register-test",
10
- TEST_STARTED = "tomation-test-started",
11
- TEST_PASSED = "tomation-test-passed",
12
- TEST_FAILED = "tomation-test-failed",
13
- TEST_END = "tomation-test-end",
14
- TEST_STOP = "tomation-test-stop",
15
- TEST_PAUSE = "tomation-test-pause",
16
- TEST_PLAY = "tomation-test-play",
17
- USER_ACCEPT = "tomation-user-accept",
18
- USER_REJECT = "tomation-user-reject",
19
- SESSION_INIT = "tomation-session-init",
20
- ACTION_ERROR = "tomation-action-error"
21
- }
22
- type AutomationEventHandlerType = ((action?: any) => void);
23
- declare class EventDispatcher {
24
- events: Map<EVENT_NAMES, Array<AutomationEventHandlerType>>;
25
- constructor();
26
- on(eventName: EVENT_NAMES, callback: AutomationEventHandlerType): void;
27
- off(eventName: EVENT_NAMES, callback: AutomationEventHandlerType): void;
28
- dispatch(eventName: EVENT_NAMES, data?: any): void;
29
- }
30
- declare const AutomationEvents: EventDispatcher;
31
- declare enum TestSpeed {
32
- SLOW = 2000,
33
- NORMAL = 1000,
34
- FAST = 200
35
- }
36
- declare enum TestPlayStatus {
37
- PLAYING = "Playing",
38
- STOPPED = "Stopped",
39
- PAUSED = "Paused"
40
- }
41
- declare enum RunMode {
42
- NORMAL = "Normal",
43
- STEPBYSTEP = "Step By Step"
44
- }
45
- declare const Test: (id: string, steps: () => void) => void;
46
- declare const RunTest: (id: string) => void;
47
- declare const Task: <T>(id: string, steps: (params: T) => void) => (params?: T | undefined) => Promise<void>;
48
- declare const Click: (uiElement: UIElement) => void;
49
- declare const Assert: (uiElement: UIElement) => {
50
- textIs: (text: string) => void;
51
- containsText: (text: string) => void;
52
- valueIs: (value: string) => void;
53
- exists: () => void;
54
- notExists: () => void;
55
- };
56
- declare const Select: (value: string) => {
57
- in: (uiElement: UIElement) => void;
58
- };
59
- declare const Type: (value: string) => {
60
- in: (uiElement: UIElement) => void;
61
- };
62
- declare const ClearValue: () => {
63
- in: (uiElement: UIElement) => void;
64
- };
65
- declare const PressEscKey: () => {
66
- in: (uiElement: UIElement) => void;
67
- };
68
- declare const PressDownKey: () => {
69
- in: (uiElement: UIElement) => void;
70
- };
71
- declare const PressTabKey: () => {
72
- in: (uiElement: UIElement) => void;
73
- };
74
- declare const PressEnterKey: () => {
75
- in: (uiElement: UIElement) => void;
76
- };
77
- declare const PressKey: (key: KEY_MAP) => {
78
- in: (uiElement: UIElement) => void;
79
- };
80
- declare const TypePassword: (value: string) => {
81
- in: (uiElement: UIElement) => void;
82
- };
83
- declare const UploadFile: (file: File) => {
84
- in: (uiElement: UIElement) => void;
85
- };
86
- declare const SaveValue: (uiElement: UIElement) => {
87
- in: (memorySlotName: string) => void;
88
- };
89
- declare const Wait: {
90
- (miliseconds: number): void;
91
- untilElement(uiElement: UIElement): {
92
- isRemoved: () => void;
93
- };
94
- };
95
- declare const Pause: () => void;
96
- declare const ManualTask: (description: string) => void;
97
- declare const ReloadPage: () => void;
98
- declare const If: (description: string, condition: () => boolean) => {
99
- then: (thenSteps: Action) => {
100
- else: (elseSteps: Action) => void;
101
- };
102
- };
103
- declare class Automation {
104
- private _document;
105
- debug: Boolean;
106
- private _uiUtils;
107
- speed: TestSpeed;
108
- status: TestPlayStatus;
109
- runMode: RunMode;
110
- currentActionCallback: ((action: AbstractAction) => {}) | undefined;
111
- currentAction: AbstractAction | undefined;
112
- constructor(window: Window);
113
- get document(): Document;
114
- get uiUtils(): UIUtils;
115
- get isStepByStepMode(): boolean;
116
- get isStopped(): boolean;
117
- get isPlaying(): boolean;
118
- get isPaused(): boolean;
119
- pause(): void;
120
- continue(): void;
121
- next(): void;
122
- stop(): void;
123
- retryAction(): void;
124
- skipAction(): void;
125
- saveCurrentAction(callback: (action: AbstractAction) => {}, action: AbstractAction): void;
126
- setDebug(value: boolean): void;
127
- }
128
- declare let AutomationInstance: Automation;
129
- declare const Setup: (window: Window, tests?: Array<any>) => Automation;
130
- interface TomationOptions {
131
- matches: string | RegExp;
132
- tests: any[];
133
- speed?: keyof typeof TestSpeed;
134
- debug?: boolean;
135
- }
136
- export declare function tomation(options: TomationOptions): void;
137
- 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, If, DateUtils, AutomationEvents, EVENT_NAMES, TestSpeed, ACTION_STATUS, setAutomationLogs, };