automation_model 1.0.372-dev.0 → 1.0.372-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/stable_browser.d.ts +13 -1
- package/lib/stable_browser.js +391 -124
- package/lib/stable_browser.js.map +1 -1
- package/package.json +7 -3
package/lib/stable_browser.d.ts
CHANGED
|
@@ -15,7 +15,10 @@ declare class StableBrowser {
|
|
|
15
15
|
goto(url: string): Promise<void>;
|
|
16
16
|
_validateSelectors(selectors: any): void;
|
|
17
17
|
_fixUsingParams(text: any, _params: Params): any;
|
|
18
|
-
|
|
18
|
+
_fixLocatorUsingParams(locator: any, _params: Params): any;
|
|
19
|
+
_isObject(value: any): any;
|
|
20
|
+
scanAndManipulate(currentObj: any, _params: Params): void;
|
|
21
|
+
_getLocator(locator: any, scope: any, _params: any): any;
|
|
19
22
|
_locateElmentByTextClimbCss(scope: any, text: any, climb: any, css: any, _params: Params): Promise<string | undefined>;
|
|
20
23
|
_locateElementByText(scope: any, text1: any, tag1: any, regex1: boolean | undefined, partial1: any, _params: Params): Promise<any>;
|
|
21
24
|
_collectLocatorInformation(selectorHierarchy: any, index: number | undefined, scope: any, foundLocators: any, _params: Params, info: any, visibleOnly?: boolean): Promise<void>;
|
|
@@ -32,6 +35,7 @@ declare class StableBrowser {
|
|
|
32
35
|
hover(selectors: any, _params?: Params, options?: {}, world?: null): Promise<{}>;
|
|
33
36
|
selectOption(selectors: any, values: any, _params?: null, options?: {}, world?: null): Promise<{}>;
|
|
34
37
|
type(_value: any, _params?: null, options?: {}, world?: null): Promise<{}>;
|
|
38
|
+
setInputValue(selectors: any, value: any, _params?: null, options?: {}, world?: null): Promise<void>;
|
|
35
39
|
setDateTime(selectors: any, value: any, format?: null, enter?: boolean, _params?: null, options?: {}, world?: null): Promise<void>;
|
|
36
40
|
clickType(selectors: any, _value: any, enter?: boolean, _params?: null, options?: {}, world?: null): Promise<{}>;
|
|
37
41
|
fill(selectors: any, value: any, enter?: boolean, _params?: null, options?: {}, world?: null): Promise<{}>;
|
|
@@ -65,19 +69,27 @@ declare class StableBrowser {
|
|
|
65
69
|
containsText(selectors: any, text: any, climb: any, _params?: null, options?: {}, world?: null): Promise<{}>;
|
|
66
70
|
_getDataFile(world?: null): string;
|
|
67
71
|
setTestData(testData: any, world?: null): void;
|
|
72
|
+
_getDataFilePath(fileName: any): string;
|
|
73
|
+
_parseCSVSync(filePath: any): Promise<unknown>;
|
|
68
74
|
loadTestData(type: string, dataSelector: string, world?: null): {
|
|
69
75
|
username: any;
|
|
70
76
|
password: string;
|
|
71
77
|
totp: string | null;
|
|
72
78
|
};
|
|
79
|
+
loadTestDataAsync(type: string, dataSelector: string, world?: null): Promise<any>;
|
|
73
80
|
getTestData(world?: null): {};
|
|
74
81
|
_screenShot(options?: {}, world?: null, info?: null): Promise<{}>;
|
|
75
82
|
takeScreenshot(screenshotPath: any): Promise<any>;
|
|
76
83
|
verifyElementExistInPage(selectors: any, _params?: null, options?: {}, world?: null): Promise<{}>;
|
|
77
84
|
extractAttribute(selectors: any, attribute: any, variable: any, _params?: null, options?: {}, world?: null): Promise<{}>;
|
|
85
|
+
extractEmailData(emailAddress: any, options: any, world: any): Promise<{
|
|
86
|
+
emailUrl: any;
|
|
87
|
+
emailCode: any;
|
|
88
|
+
}>;
|
|
78
89
|
_highlightElements(scope: any, css: any): Promise<void>;
|
|
79
90
|
verifyPagePath(pathPart: any, options?: {}, world?: null): Promise<{} | undefined>;
|
|
80
91
|
verifyTextExistInPage(text: any, options?: {}, world?: null): Promise<{}>;
|
|
92
|
+
_getServerUrl(): string;
|
|
81
93
|
visualVerification(text: any, options?: {}, world?: null): Promise<{}>;
|
|
82
94
|
verifyTableData(selectors: any, data: any, _params?: null, options?: {}, world?: null): Promise<void>;
|
|
83
95
|
getTableData(selectors: any, _params?: null, options?: {}, world?: null): Promise<any>;
|