automation_model 1.0.432-dev → 1.0.432-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 +42 -1
- package/lib/api.js +199 -13
- package/lib/api.js.map +1 -1
- package/lib/auto_page.js +1 -24
- package/lib/auto_page.js.map +1 -1
- package/lib/axe/axe.mini.js +12 -0
- package/lib/browser_manager.js +8 -3
- package/lib/browser_manager.js.map +1 -1
- package/lib/command_common.d.ts +5 -0
- package/lib/command_common.js +111 -0
- package/lib/command_common.js.map +1 -0
- package/lib/environment.d.ts +3 -0
- package/lib/environment.js +5 -2
- package/lib/environment.js.map +1 -1
- package/lib/init_browser.d.ts +2 -1
- package/lib/init_browser.js +38 -3
- package/lib/init_browser.js.map +1 -1
- package/lib/locate_element.d.ts +7 -0
- package/lib/locate_element.js +213 -0
- package/lib/locate_element.js.map +1 -0
- package/lib/stable_browser.d.ts +26 -16
- package/lib/stable_browser.js +535 -628
- package/lib/stable_browser.js.map +1 -1
- package/lib/test_context.d.ts +2 -0
- package/lib/test_context.js +11 -10
- package/lib/test_context.js.map +1 -1
- package/lib/utils.d.ts +3 -1
- package/lib/utils.js +68 -1
- package/lib/utils.js.map +1 -1
- package/package.json +5 -4
package/lib/stable_browser.d.ts
CHANGED
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
import type { Browser, Page } from "playwright";
|
|
2
2
|
type Params = Record<string, string>;
|
|
3
|
+
export declare const apps: {};
|
|
3
4
|
declare class StableBrowser {
|
|
4
5
|
browser: Browser;
|
|
5
6
|
page: Page;
|
|
6
7
|
logger: any;
|
|
7
8
|
context: any;
|
|
9
|
+
world?: any;
|
|
8
10
|
project_path: null;
|
|
9
11
|
webLogFile: null;
|
|
12
|
+
networkLogger: null;
|
|
10
13
|
configuration: null;
|
|
11
|
-
|
|
14
|
+
appName: string;
|
|
15
|
+
constructor(browser: Browser, page: Page, logger?: any, context?: any, world?: any);
|
|
16
|
+
registerEventListeners(context: any): void;
|
|
17
|
+
switchApp(appName: any): Promise<void>;
|
|
18
|
+
_copyContext(from: any, to: any): void;
|
|
12
19
|
getWebLogFile(logFolder: string): string;
|
|
13
|
-
registerConsoleLogListener(page: Page, context: any
|
|
14
|
-
registerRequestListener(): void;
|
|
20
|
+
registerConsoleLogListener(page: Page, context: any): void;
|
|
21
|
+
registerRequestListener(page: Page, context: any, logFile: string): void;
|
|
15
22
|
goto(url: string): Promise<void>;
|
|
16
|
-
_validateSelectors(selectors: any): void;
|
|
17
23
|
_fixUsingParams(text: any, _params: Params): any;
|
|
18
24
|
_fixLocatorUsingParams(locator: any, _params: Params): any;
|
|
19
25
|
_isObject(value: any): any;
|
|
@@ -25,20 +31,24 @@ declare class StableBrowser {
|
|
|
25
31
|
closeUnexpectedPopups(info: any, _params: any): Promise<{
|
|
26
32
|
rerun: boolean;
|
|
27
33
|
}>;
|
|
28
|
-
_locate(selectors: any, info: any, _params?: Params, timeout
|
|
34
|
+
_locate(selectors: any, info: any, _params?: Params, timeout: any): Promise<any>;
|
|
35
|
+
_findFrameScope(selectors: any, timeout?: number): Promise<any>;
|
|
36
|
+
_getDocumentBody(selectors: any, timeout?: number): Promise<any>;
|
|
29
37
|
_locate_internal(selectors: any, info: any, _params?: Params, timeout?: number): Promise<any>;
|
|
30
38
|
_scanLocatorsGroup(locatorsGroup: any, scope: any, _params: any, info: any, visibleOnly: any): Promise<{
|
|
31
39
|
foundElements: any[];
|
|
32
40
|
}>;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
41
|
+
simpleClick(elementDescription: any, _params?: Params, options?: {}, world?: null): Promise<void>;
|
|
42
|
+
simpleClickType(elementDescription: any, value: any, _params?: Params, options?: {}, world?: null): Promise<void>;
|
|
43
|
+
click(selectors: any, _params?: Params, options?: {}, world?: null): Promise<any>;
|
|
44
|
+
setCheck(selectors: any, checked?: boolean, _params?: Params, options?: {}, world?: null): Promise<any>;
|
|
45
|
+
hover(selectors: any, _params?: Params, options?: {}, world?: null): Promise<any>;
|
|
46
|
+
selectOption(selectors: any, values: any, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
47
|
+
type(_value: any, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
38
48
|
setInputValue(selectors: any, value: any, _params?: null, options?: {}, world?: null): Promise<void>;
|
|
39
49
|
setDateTime(selectors: any, value: any, format?: null, enter?: boolean, _params?: null, options?: {}, world?: null): Promise<void>;
|
|
40
|
-
clickType(selectors: any, _value: any, enter?: boolean, _params?: null, options?: {}, world?: null): Promise<
|
|
41
|
-
fill(selectors: any, value: any, enter?: boolean, _params?: null, options?: {}, world?: null): Promise<
|
|
50
|
+
clickType(selectors: any, _value: any, enter?: boolean, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
51
|
+
fill(selectors: any, value: any, enter?: boolean, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
42
52
|
getText(selectors: any, _params?: null, options?: {}, info?: {}, world?: null): Promise<{
|
|
43
53
|
text: any;
|
|
44
54
|
screenshotId: any;
|
|
@@ -65,8 +75,8 @@ declare class StableBrowser {
|
|
|
65
75
|
value: any;
|
|
66
76
|
element?: undefined;
|
|
67
77
|
}>;
|
|
68
|
-
containsPattern(selectors: any, pattern: any, text: any, _params?: null, options?: {}, world?: null): Promise<
|
|
69
|
-
containsText(selectors: any, text: any, climb: any, _params?: null, options?: {}, world?: null): Promise<
|
|
78
|
+
containsPattern(selectors: any, pattern: any, text: any, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
79
|
+
containsText(selectors: any, text: any, climb: any, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
70
80
|
_getDataFile(world?: null): string;
|
|
71
81
|
waitForUserInput(message: any, world?: null): Promise<void>;
|
|
72
82
|
setTestData(testData: any, world?: null): void;
|
|
@@ -81,7 +91,7 @@ declare class StableBrowser {
|
|
|
81
91
|
getTestData(world?: null): {};
|
|
82
92
|
_screenShot(options?: {}, world?: null, info?: null): Promise<{}>;
|
|
83
93
|
takeScreenshot(screenshotPath: any): Promise<any>;
|
|
84
|
-
verifyElementExistInPage(selectors: any, _params?: null, options?: {}, world?: null): Promise<
|
|
94
|
+
verifyElementExistInPage(selectors: any, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
85
95
|
extractAttribute(selectors: any, attribute: any, variable: any, _params?: null, options?: {}, world?: null): Promise<{}>;
|
|
86
96
|
extractEmailData(emailAddress: any, options: any, world: any): Promise<{
|
|
87
97
|
emailUrl: any;
|
|
@@ -95,7 +105,7 @@ declare class StableBrowser {
|
|
|
95
105
|
verifyTableData(selectors: any, data: any, _params?: null, options?: {}, world?: null): Promise<void>;
|
|
96
106
|
getTableData(selectors: any, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
97
107
|
analyzeTable(selectors: any, query: any, operator: any, value: any, _params?: null, options?: {}, world?: null): Promise<{}>;
|
|
98
|
-
_replaceWithLocalData(value: any, world: any, _decrypt?: boolean, totpWait?: boolean): Promise<
|
|
108
|
+
_replaceWithLocalData(value: any, world: any, _decrypt?: boolean, totpWait?: boolean): Promise<string>;
|
|
99
109
|
_getLoadTimeout(options: any): number;
|
|
100
110
|
waitForPageLoad(options?: {}, world?: null): Promise<void>;
|
|
101
111
|
closePage(options?: {}, world?: null): Promise<void>;
|