automation_model 1.0.536-dev → 1.0.536-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/lib/api.d.ts +1 -0
- package/lib/api.js +8 -7
- package/lib/api.js.map +1 -1
- package/lib/auto_page.d.ts +5 -2
- package/lib/auto_page.js +95 -5
- package/lib/auto_page.js.map +1 -1
- package/lib/browser_manager.d.ts +3 -2
- package/lib/browser_manager.js +66 -44
- package/lib/browser_manager.js.map +1 -1
- package/lib/command_common.d.ts +1 -1
- package/lib/command_common.js +51 -9
- 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/generation_scripts.d.ts +4 -0
- package/lib/generation_scripts.js +2 -0
- package/lib/generation_scripts.js.map +1 -0
- package/lib/init_browser.d.ts +2 -1
- package/lib/init_browser.js +24 -9
- package/lib/init_browser.js.map +1 -1
- package/lib/locate_element.js +15 -13
- package/lib/locate_element.js.map +1 -1
- package/lib/locator_log.d.ts +26 -0
- package/lib/locator_log.js +69 -0
- package/lib/locator_log.js.map +1 -0
- package/lib/network.js +51 -12
- package/lib/network.js.map +1 -1
- package/lib/stable_browser.d.ts +50 -18
- package/lib/stable_browser.js +616 -505
- package/lib/stable_browser.js.map +1 -1
- package/lib/utils.d.ts +14 -1
- package/lib/utils.js +344 -6
- package/lib/utils.js.map +1 -1
- package/package.json +6 -5
- /package/lib/{axe → scripts}/axe.mini.js +0 -0
package/lib/stable_browser.d.ts
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
import type { Browser, Page } from "playwright";
|
|
2
|
-
|
|
2
|
+
import { Params } from "./utils.js";
|
|
3
|
+
export declare const Types: {
|
|
4
|
+
CLICK: string;
|
|
5
|
+
NAVIGATE: string;
|
|
6
|
+
FILL: string;
|
|
7
|
+
EXECUTE: string;
|
|
8
|
+
OPEN: string;
|
|
9
|
+
COMPLETE: string;
|
|
10
|
+
ASK: string;
|
|
11
|
+
GET_PAGE_STATUS: string;
|
|
12
|
+
CLICK_ROW_ACTION: string;
|
|
13
|
+
VERIFY_ELEMENT_CONTAINS_TEXT: string;
|
|
14
|
+
VERIFY_PAGE_CONTAINS_TEXT: string;
|
|
15
|
+
VERIFY_PAGE_CONTAINS_NO_TEXT: string;
|
|
16
|
+
ANALYZE_TABLE: string;
|
|
17
|
+
SELECT: string;
|
|
18
|
+
VERIFY_PAGE_PATH: string;
|
|
19
|
+
TYPE_PRESS: string;
|
|
20
|
+
PRESS: string;
|
|
21
|
+
HOVER: string;
|
|
22
|
+
CHECK: string;
|
|
23
|
+
UNCHECK: string;
|
|
24
|
+
EXTRACT: string;
|
|
25
|
+
CLOSE_PAGE: string;
|
|
26
|
+
SET_DATE_TIME: string;
|
|
27
|
+
SET_VIEWPORT: string;
|
|
28
|
+
VERIFY_VISUAL: string;
|
|
29
|
+
LOAD_DATA: string;
|
|
30
|
+
SET_INPUT: string;
|
|
31
|
+
WAIT_FOR_TEXT_TO_DISAPPEAR: string;
|
|
32
|
+
VERIFY_ATTRIBUTE: string;
|
|
33
|
+
VERIFY_TEXT_WITH_RELATION: string;
|
|
34
|
+
};
|
|
3
35
|
export declare const apps: {};
|
|
4
36
|
declare class StableBrowser {
|
|
5
37
|
browser: Browser;
|
|
@@ -13,32 +45,27 @@ declare class StableBrowser {
|
|
|
13
45
|
configuration: null;
|
|
14
46
|
appName: string;
|
|
15
47
|
tags: null;
|
|
16
|
-
isRecording: boolean;
|
|
17
48
|
constructor(browser: Browser, page: Page, logger?: any, context?: any, world?: any);
|
|
18
|
-
scrollPageToLoadLazyElements(): Promise<void>;
|
|
19
49
|
registerEventListeners(context: any): void;
|
|
20
50
|
switchApp(appName: any): Promise<void>;
|
|
21
|
-
_copyContext(from: any, to: any): void;
|
|
22
|
-
getWebLogFile(logFolder: string): string;
|
|
23
51
|
registerConsoleLogListener(page: Page, context: any): void;
|
|
24
52
|
registerRequestListener(page: Page, context: any, logFile: string): void;
|
|
25
|
-
goto(url: string): Promise<void>;
|
|
26
|
-
|
|
27
|
-
_fixLocatorUsingParams(locator: any, _params: Params): any;
|
|
28
|
-
_isObject(value: any): any;
|
|
29
|
-
scanAndManipulate(currentObj: any, _params: Params): void;
|
|
30
|
-
_getLocator(locator: any, scope: any, _params: any): any;
|
|
53
|
+
goto(url: string, world?: null): Promise<void>;
|
|
54
|
+
_getLocator(locator: any, scope: any, _params: any): Promise<any>;
|
|
31
55
|
_locateElmentByTextClimbCss(scope: any, text: any, climb: any, css: any, _params: Params): Promise<string | undefined>;
|
|
32
|
-
_locateElementByText(scope: any, text1: any, tag1: any, regex1: boolean | undefined, partial1: any, _params: Params): Promise<
|
|
33
|
-
|
|
56
|
+
_locateElementByText(scope: any, text1: any, tag1: any, regex1: boolean | undefined, partial1: any, ignoreCase: boolean | undefined, _params: Params): Promise<{
|
|
57
|
+
elementCount: number;
|
|
58
|
+
randomToken: string;
|
|
59
|
+
}>;
|
|
60
|
+
_collectLocatorInformation(selectorHierarchy: any, index: number | undefined, scope: any, foundLocators: any, _params: Params, info: any, visibleOnly?: boolean, allowDisabled?: boolean | undefined, element_name?: null): Promise<void>;
|
|
34
61
|
closeUnexpectedPopups(info: any, _params: any): Promise<{
|
|
35
62
|
rerun: boolean;
|
|
36
63
|
}>;
|
|
37
|
-
_locate(selectors: any, info: any, _params?: Params, timeout: any): Promise<any>;
|
|
64
|
+
_locate(selectors: any, info: any, _params?: Params, timeout: any, allowDisabled?: boolean | undefined): Promise<any>;
|
|
38
65
|
_findFrameScope(selectors: any, timeout: number | undefined, info: any): Promise<any>;
|
|
39
66
|
_getDocumentBody(selectors: any, timeout: number | undefined, info: any): Promise<any>;
|
|
40
|
-
_locate_internal(selectors: any, info: any, _params?: Params, timeout?: number): Promise<any>;
|
|
41
|
-
_scanLocatorsGroup(locatorsGroup: any, scope: any, _params: any, info: any, visibleOnly: any): Promise<{
|
|
67
|
+
_locate_internal(selectors: any, info: any, _params?: Params, timeout?: number, allowDisabled?: boolean | undefined): Promise<any>;
|
|
68
|
+
_scanLocatorsGroup(locatorsGroup: any, scope: any, _params: any, info: any, visibleOnly: any, allowDisabled?: boolean | undefined, element_name: any): Promise<{
|
|
42
69
|
foundElements: any[];
|
|
43
70
|
}>;
|
|
44
71
|
simpleClick(elementDescription: any, _params?: Params, options?: {}, world?: null): Promise<void>;
|
|
@@ -80,7 +107,6 @@ declare class StableBrowser {
|
|
|
80
107
|
}>;
|
|
81
108
|
containsPattern(selectors: any, pattern: any, text: any, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
82
109
|
containsText(selectors: any, text: any, climb: any, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
83
|
-
_getDataFile(world?: null): string;
|
|
84
110
|
waitForUserInput(message: any, world?: null): Promise<void>;
|
|
85
111
|
setTestData(testData: any, world?: null): void;
|
|
86
112
|
_getDataFilePath(fileName: any): string;
|
|
@@ -96,21 +122,27 @@ declare class StableBrowser {
|
|
|
96
122
|
takeScreenshot(screenshotPath: any): Promise<any>;
|
|
97
123
|
verifyElementExistInPage(selectors: any, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
98
124
|
extractAttribute(selectors: any, attribute: any, variable: any, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
125
|
+
verifyAttribute(selectors: any, attribute: any, value: any, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
99
126
|
extractEmailData(emailAddress: any, options: any, world: any): Promise<{
|
|
100
127
|
emailUrl: any;
|
|
101
128
|
emailCode: any;
|
|
102
129
|
}>;
|
|
103
130
|
_highlightElements(scope: any, css: any): Promise<void>;
|
|
104
131
|
verifyPagePath(pathPart: any, options?: {}, world?: null): Promise<{} | undefined>;
|
|
132
|
+
findTextInAllFrames(dateAlternatives: any, numberAlternatives: any, text: any, state: any): Promise<{
|
|
133
|
+
elementCount: number;
|
|
134
|
+
randomToken: string;
|
|
135
|
+
}[]>;
|
|
105
136
|
verifyTextExistInPage(text: any, options?: {}, world?: null): Promise<any>;
|
|
106
137
|
waitForTextToDisappear(text: any, options?: {}, world?: null): Promise<any>;
|
|
107
|
-
|
|
138
|
+
verifyTextRelatedToText(textAnchor: string, climb: number, textToVerify: string, options?: {}, world?: any): Promise<any>;
|
|
108
139
|
visualVerification(text: any, options?: {}, world?: null): Promise<{} | undefined>;
|
|
109
140
|
verifyTableData(selectors: any, data: any, _params?: null, options?: {}, world?: null): Promise<void>;
|
|
110
141
|
getTableData(selectors: any, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
111
142
|
analyzeTable(selectors: any, query: any, operator: any, value: any, _params?: null, options?: {}, world?: null): Promise<{} | undefined>;
|
|
112
143
|
_replaceWithLocalData(value: any, world: any, _decrypt?: boolean, totpWait?: boolean): Promise<string>;
|
|
113
144
|
_getLoadTimeout(options: any): number;
|
|
145
|
+
saveStoreState(path?: string | null, world?: any): Promise<void>;
|
|
114
146
|
waitForPageLoad(options?: {}, world?: null): Promise<void>;
|
|
115
147
|
closePage(options?: {}, world?: null): Promise<void>;
|
|
116
148
|
saveTestDataAsGlobal(options: any, world: any): void;
|