automation_model 1.0.474-dev → 1.0.474-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 +221 -47
- package/lib/api.js.map +1 -1
- package/lib/auto_page.d.ts +2 -1
- package/lib/auto_page.js +39 -17
- package/lib/auto_page.js.map +1 -1
- package/lib/browser_manager.d.ts +6 -3
- package/lib/browser_manager.js +92 -18
- package/lib/browser_manager.js.map +1 -1
- package/lib/command_common.d.ts +1 -0
- package/lib/command_common.js +53 -7
- package/lib/command_common.js.map +1 -1
- package/lib/environment.js +5 -3
- package/lib/environment.js.map +1 -1
- package/lib/error-messages.d.ts +6 -0
- package/lib/error-messages.js +188 -0
- package/lib/error-messages.js.map +1 -0
- 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/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/init_browser.d.ts +2 -1
- package/lib/init_browser.js +31 -4
- package/lib/init_browser.js.map +1 -1
- package/lib/locate_element.js +5 -3
- package/lib/locate_element.js.map +1 -1
- package/lib/locator.d.ts +36 -0
- package/lib/locator.js +165 -0
- package/lib/locator.js.map +1 -1
- package/lib/network.d.ts +3 -0
- package/lib/network.js +150 -0
- package/lib/network.js.map +1 -0
- package/lib/stable_browser.d.ts +16 -10
- package/lib/stable_browser.js +448 -291
- package/lib/stable_browser.js.map +1 -1
- package/lib/table.d.ts +13 -0
- package/lib/table.js +187 -0
- package/lib/table.js.map +1 -0
- package/lib/test_context.d.ts +1 -0
- package/lib/test_context.js +12 -12
- 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
|
@@ -12,7 +12,9 @@ declare class StableBrowser {
|
|
|
12
12
|
networkLogger: null;
|
|
13
13
|
configuration: null;
|
|
14
14
|
appName: string;
|
|
15
|
+
tags: null;
|
|
15
16
|
constructor(browser: Browser, page: Page, logger?: any, context?: any, world?: any);
|
|
17
|
+
scrollPageToLoadLazyElements(): Promise<void>;
|
|
16
18
|
registerEventListeners(context: any): void;
|
|
17
19
|
switchApp(appName: any): Promise<void>;
|
|
18
20
|
_copyContext(from: any, to: any): void;
|
|
@@ -31,9 +33,9 @@ declare class StableBrowser {
|
|
|
31
33
|
closeUnexpectedPopups(info: any, _params: any): Promise<{
|
|
32
34
|
rerun: boolean;
|
|
33
35
|
}>;
|
|
34
|
-
_locate(selectors: any, info: any, _params?: Params, timeout
|
|
35
|
-
_findFrameScope(selectors: any, timeout
|
|
36
|
-
_getDocumentBody(selectors: any, timeout
|
|
36
|
+
_locate(selectors: any, info: any, _params?: Params, timeout: any): Promise<any>;
|
|
37
|
+
_findFrameScope(selectors: any, timeout: number | undefined, info: any): Promise<any>;
|
|
38
|
+
_getDocumentBody(selectors: any, timeout: number | undefined, info: any): Promise<any>;
|
|
37
39
|
_locate_internal(selectors: any, info: any, _params?: Params, timeout?: number): Promise<any>;
|
|
38
40
|
_scanLocatorsGroup(locatorsGroup: any, scope: any, _params: any, info: any, visibleOnly: any): Promise<{
|
|
39
41
|
foundElements: any[];
|
|
@@ -92,27 +94,31 @@ declare class StableBrowser {
|
|
|
92
94
|
_screenShot(options?: {}, world?: null, info?: null): Promise<{}>;
|
|
93
95
|
takeScreenshot(screenshotPath: any): Promise<any>;
|
|
94
96
|
verifyElementExistInPage(selectors: any, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
95
|
-
extractAttribute(selectors: any, attribute: any, variable: any, _params?: null, options?: {}, world?: null): Promise<
|
|
97
|
+
extractAttribute(selectors: any, attribute: any, variable: any, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
98
|
+
verifyAttribute(selectors: any, attribute: any, value: any, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
96
99
|
extractEmailData(emailAddress: any, options: any, world: any): Promise<{
|
|
97
100
|
emailUrl: any;
|
|
98
101
|
emailCode: any;
|
|
99
102
|
}>;
|
|
100
103
|
_highlightElements(scope: any, css: any): Promise<void>;
|
|
101
104
|
verifyPagePath(pathPart: any, options?: {}, world?: null): Promise<{} | undefined>;
|
|
102
|
-
verifyTextExistInPage(text: any, options?: {}, world?: null): Promise<
|
|
105
|
+
verifyTextExistInPage(text: any, options?: {}, world?: null): Promise<any>;
|
|
106
|
+
waitForTextToDisappear(text: any, options?: {}, world?: null): Promise<any>;
|
|
103
107
|
_getServerUrl(): string;
|
|
104
|
-
visualVerification(text: any, options?: {}, world?: null): Promise<{}>;
|
|
108
|
+
visualVerification(text: any, options?: {}, world?: null): Promise<{} | undefined>;
|
|
105
109
|
verifyTableData(selectors: any, data: any, _params?: null, options?: {}, world?: null): Promise<void>;
|
|
106
110
|
getTableData(selectors: any, _params?: null, options?: {}, world?: null): Promise<any>;
|
|
107
|
-
analyzeTable(selectors: any, query: any, operator: any, value: any, _params?: null, options?: {}, world?: null): Promise<{}>;
|
|
108
|
-
_replaceWithLocalData(value: any, world: any, _decrypt?: boolean, totpWait?: boolean): Promise<
|
|
111
|
+
analyzeTable(selectors: any, query: any, operator: any, value: any, _params?: null, options?: {}, world?: null): Promise<{} | undefined>;
|
|
112
|
+
_replaceWithLocalData(value: any, world: any, _decrypt?: boolean, totpWait?: boolean): Promise<string>;
|
|
109
113
|
_getLoadTimeout(options: any): number;
|
|
110
114
|
waitForPageLoad(options?: {}, world?: null): Promise<void>;
|
|
111
115
|
closePage(options?: {}, world?: null): Promise<void>;
|
|
116
|
+
saveTestDataAsGlobal(options: any, world: any): void;
|
|
112
117
|
setViewportSize(width: number, hight: number, options?: {}, world?: null): Promise<void>;
|
|
113
118
|
reloadPage(options?: {}, world?: null): Promise<void>;
|
|
114
119
|
scrollIfNeeded(element: any, info: any): Promise<void>;
|
|
115
|
-
|
|
120
|
+
beforeStep(world: any, step: any): Promise<void>;
|
|
121
|
+
afterStep(world: any, step: any): Promise<void>;
|
|
116
122
|
}
|
|
117
123
|
type JsonTimestamp = number;
|
|
118
124
|
type JsonResultPassed = {
|
|
@@ -127,7 +133,7 @@ type JsonResultFailed = {
|
|
|
127
133
|
message?: string;
|
|
128
134
|
};
|
|
129
135
|
type JsonCommandResult = JsonResultPassed | JsonResultFailed;
|
|
130
|
-
type JsonCommandReport = {
|
|
136
|
+
export type JsonCommandReport = {
|
|
131
137
|
type: string;
|
|
132
138
|
value?: string;
|
|
133
139
|
text: string;
|