automation_model 1.0.565-dev → 1.0.565-stage
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/README.md +130 -0
- package/lib/api.js +3 -0
- package/lib/api.js.map +1 -1
- package/lib/auto_page.d.ts +4 -2
- package/lib/auto_page.js +105 -8
- package/lib/auto_page.js.map +1 -1
- package/lib/browser_manager.js +49 -45
- package/lib/browser_manager.js.map +1 -1
- package/lib/command_common.d.ts +4 -4
- package/lib/command_common.js +42 -20
- package/lib/command_common.js.map +1 -1
- package/lib/error-messages.js +18 -0
- package/lib/error-messages.js.map +1 -1
- package/lib/init_browser.d.ts +3 -2
- package/lib/init_browser.js +64 -11
- package/lib/init_browser.js.map +1 -1
- package/lib/locate_element.js +2 -2
- package/lib/locate_element.js.map +1 -1
- package/lib/network.d.ts +1 -1
- package/lib/network.js +46 -18
- package/lib/network.js.map +1 -1
- package/lib/stable_browser.d.ts +28 -9
- package/lib/stable_browser.js +729 -230
- package/lib/stable_browser.js.map +1 -1
- package/lib/table_helper.d.ts +19 -0
- package/lib/table_helper.js +101 -0
- package/lib/table_helper.js.map +1 -0
- package/lib/test_context.d.ts +3 -0
- package/lib/test_context.js +2 -0
- package/lib/test_context.js.map +1 -1
- package/lib/utils.d.ts +7 -2
- package/lib/utils.js +319 -12
- package/lib/utils.js.map +1 -1
- package/package.json +7 -8
- package/lib/scripts/find_text.js +0 -126
package/lib/stable_browser.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { Browser, Page } from "playwright";
|
|
|
2
2
|
import { Params } from "./utils.js";
|
|
3
3
|
export declare const Types: {
|
|
4
4
|
CLICK: string;
|
|
5
|
+
WAIT_ELEMENT: string;
|
|
5
6
|
NAVIGATE: string;
|
|
6
7
|
FILL: string;
|
|
7
8
|
EXECUTE: string;
|
|
@@ -23,6 +24,7 @@ export declare const Types: {
|
|
|
23
24
|
UNCHECK: string;
|
|
24
25
|
EXTRACT: string;
|
|
25
26
|
CLOSE_PAGE: string;
|
|
27
|
+
TABLE_OPERATION: string;
|
|
26
28
|
SET_DATE_TIME: string;
|
|
27
29
|
SET_VIEWPORT: string;
|
|
28
30
|
VERIFY_VISUAL: string;
|
|
@@ -46,29 +48,34 @@ declare class StableBrowser {
|
|
|
46
48
|
appName: string;
|
|
47
49
|
tags: null;
|
|
48
50
|
isRecording: boolean;
|
|
51
|
+
initSnapshotTaken: boolean;
|
|
49
52
|
constructor(browser: Browser, page: Page, logger?: any, context?: any, world?: any);
|
|
50
53
|
registerEventListeners(context: any): void;
|
|
51
54
|
switchApp(appName: any): Promise<void>;
|
|
52
55
|
registerConsoleLogListener(page: Page, context: any): void;
|
|
53
56
|
registerRequestListener(page: Page, context: any, logFile: string): void;
|
|
54
|
-
goto(url: string): Promise<void>;
|
|
55
|
-
_getLocator(locator: any, scope: any, _params: any): any
|
|
57
|
+
goto(url: string, world?: null): Promise<void>;
|
|
58
|
+
_getLocator(locator: any, scope: any, _params: any): Promise<any>;
|
|
56
59
|
_locateElmentByTextClimbCss(scope: any, text: any, climb: any, css: any, _params: Params): Promise<string | undefined>;
|
|
57
|
-
_locateElementByText(scope: any, text1: any, tag1: any, regex1: boolean | undefined, partial1: any, _params: Params): Promise<
|
|
58
|
-
|
|
60
|
+
_locateElementByText(scope: any, text1: any, tag1: any, regex1: boolean | undefined, partial1: any, ignoreCase: boolean | undefined, _params: Params): Promise<{
|
|
61
|
+
elementCount: number;
|
|
62
|
+
randomToken: string;
|
|
63
|
+
}>;
|
|
64
|
+
_collectLocatorInformation(selectorHierarchy: any, index: number | undefined, scope: any, foundLocators: any, _params: Params, info: any, visibleOnly?: boolean, allowDisabled?: boolean | undefined, element_name?: null): Promise<void>;
|
|
59
65
|
closeUnexpectedPopups(info: any, _params: any): Promise<{
|
|
60
66
|
rerun: boolean;
|
|
61
67
|
}>;
|
|
62
|
-
_locate(selectors: any, info: any, _params?: Params, timeout: any): Promise<any>;
|
|
68
|
+
_locate(selectors: any, info: any, _params?: Params, timeout: any, allowDisabled?: boolean | undefined): Promise<any>;
|
|
63
69
|
_findFrameScope(selectors: any, timeout: number | undefined, info: any): Promise<any>;
|
|
64
70
|
_getDocumentBody(selectors: any, timeout: number | undefined, info: any): Promise<any>;
|
|
65
|
-
_locate_internal(selectors: any, info: any, _params?: Params, timeout?: number): Promise<any>;
|
|
66
|
-
_scanLocatorsGroup(locatorsGroup: any, scope: any, _params: any, info: any, visibleOnly: any): Promise<{
|
|
71
|
+
_locate_internal(selectors: any, info: any, _params?: Params, timeout?: number, allowDisabled?: boolean | undefined): Promise<any>;
|
|
72
|
+
_scanLocatorsGroup(locatorsGroup: any, scope: any, _params: any, info: any, visibleOnly: any, allowDisabled?: boolean | undefined, element_name: any): Promise<{
|
|
67
73
|
foundElements: any[];
|
|
68
74
|
}>;
|
|
69
75
|
simpleClick(elementDescription: any, _params?: Params, options?: {}, world?: null): Promise<void>;
|
|
70
76
|
simpleClickType(elementDescription: any, value: any, _params?: Params, options?: {}, world?: null): Promise<void>;
|
|
71
77
|
click(selectors: any, _params?: Params, options?: {}, world?: null): Promise<any>;
|
|
78
|
+
waitForElement(selectors: any, _params?: Params, options?: {}, world?: null): Promise<boolean>;
|
|
72
79
|
setCheck(selectors: any, checked?: boolean, _params?: Params, options?: {}, world?: null): Promise<any>;
|
|
73
80
|
hover(selectors: any, _params?: Params, options?: {}, world?: null): Promise<any>;
|
|
74
81
|
selectOption(selectors: any, values: any, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
@@ -105,9 +112,9 @@ declare class StableBrowser {
|
|
|
105
112
|
}>;
|
|
106
113
|
containsPattern(selectors: any, pattern: any, text: any, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
107
114
|
containsText(selectors: any, text: any, climb: any, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
108
|
-
_getDataFile(world?: null): string;
|
|
109
115
|
waitForUserInput(message: any, world?: null): Promise<void>;
|
|
110
116
|
setTestData(testData: any, world?: null): void;
|
|
117
|
+
overwriteTestData(testData: any, world?: null): void;
|
|
111
118
|
_getDataFilePath(fileName: any): string;
|
|
112
119
|
_parseCSVSync(filePath: any): Promise<unknown>;
|
|
113
120
|
loadTestData(type: string, dataSelector: string, world?: null): {
|
|
@@ -128,23 +135,35 @@ declare class StableBrowser {
|
|
|
128
135
|
}>;
|
|
129
136
|
_highlightElements(scope: any, css: any): Promise<void>;
|
|
130
137
|
verifyPagePath(pathPart: any, options?: {}, world?: null): Promise<{} | undefined>;
|
|
131
|
-
findTextInAllFrames(dateAlternatives: any, numberAlternatives: any, text: any, state: any): Promise<
|
|
138
|
+
findTextInAllFrames(dateAlternatives: any, numberAlternatives: any, text: any, state: any, partial?: boolean, ignoreCase?: boolean): Promise<{
|
|
139
|
+
elementCount: number;
|
|
140
|
+
randomToken: string;
|
|
141
|
+
}[]>;
|
|
132
142
|
verifyTextExistInPage(text: any, options?: {}, world?: null): Promise<any>;
|
|
133
143
|
waitForTextToDisappear(text: any, options?: {}, world?: null): Promise<any>;
|
|
134
144
|
verifyTextRelatedToText(textAnchor: string, climb: number, textToVerify: string, options?: {}, world?: any): Promise<any>;
|
|
145
|
+
findRelatedTextInAllFrames(textAnchor: string, climb: number, textToVerify: string, params?: Params, options?: {}, world?: any): Promise<{
|
|
146
|
+
elementCount: number;
|
|
147
|
+
randomToken: string;
|
|
148
|
+
}[]>;
|
|
135
149
|
visualVerification(text: any, options?: {}, world?: null): Promise<{} | undefined>;
|
|
136
150
|
verifyTableData(selectors: any, data: any, _params?: null, options?: {}, world?: null): Promise<void>;
|
|
137
151
|
getTableData(selectors: any, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
138
152
|
analyzeTable(selectors: any, query: any, operator: any, value: any, _params?: null, options?: {}, world?: null): Promise<{} | undefined>;
|
|
139
153
|
_replaceWithLocalData(value: any, world: any, _decrypt?: boolean, totpWait?: boolean): Promise<string>;
|
|
140
154
|
_getLoadTimeout(options: any): number;
|
|
155
|
+
_getFindElementTimeout(options: any): any;
|
|
156
|
+
saveStoreState(path?: string | null, world?: any): Promise<void>;
|
|
157
|
+
restoreSaveState(path?: string | null, world?: any): Promise<void>;
|
|
141
158
|
waitForPageLoad(options?: {}, world?: null): Promise<void>;
|
|
142
159
|
closePage(options?: {}, world?: null): Promise<void>;
|
|
160
|
+
tableCellOperation(headerText: string, rowText: string, options: any, _params: Params, world?: null): Promise<void>;
|
|
143
161
|
saveTestDataAsGlobal(options: any, world: any): void;
|
|
144
162
|
setViewportSize(width: number, hight: number, options?: {}, world?: null): Promise<void>;
|
|
145
163
|
reloadPage(options?: {}, world?: null): Promise<void>;
|
|
146
164
|
scrollIfNeeded(element: any, info: any): Promise<void>;
|
|
147
165
|
beforeStep(world: any, step: any): Promise<void>;
|
|
166
|
+
getAriaSnapshot(): Promise<string | null>;
|
|
148
167
|
afterStep(world: any, step: any): Promise<void>;
|
|
149
168
|
}
|
|
150
169
|
type JsonTimestamp = number;
|