automation_model 1.0.568-dev → 1.0.568-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.
@@ -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
57
  goto(url: string, world?: null): Promise<void>;
55
- _getLocator(locator: any, scope: any, _params: any): any;
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<any>;
58
- _collectLocatorInformation(selectorHierarchy: any, index: number | undefined, scope: any, foundLocators: any, _params: Params, info: any, visibleOnly?: boolean): Promise<void>;
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,36 @@ 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<any[]>;
138
+ verifyPageTitle(title: any, options?: {}, world?: null): Promise<{} | undefined>;
139
+ findTextInAllFrames(dateAlternatives: any, numberAlternatives: any, text: any, state: any, partial?: boolean, ignoreCase?: boolean): Promise<{
140
+ elementCount: number;
141
+ randomToken: string;
142
+ }[]>;
132
143
  verifyTextExistInPage(text: any, options?: {}, world?: null): Promise<any>;
133
144
  waitForTextToDisappear(text: any, options?: {}, world?: null): Promise<any>;
134
145
  verifyTextRelatedToText(textAnchor: string, climb: number, textToVerify: string, options?: {}, world?: any): Promise<any>;
146
+ findRelatedTextInAllFrames(textAnchor: string, climb: number, textToVerify: string, params?: Params, options?: {}, world?: any): Promise<{
147
+ elementCount: number;
148
+ randomToken: string;
149
+ }[]>;
135
150
  visualVerification(text: any, options?: {}, world?: null): Promise<{} | undefined>;
136
151
  verifyTableData(selectors: any, data: any, _params?: null, options?: {}, world?: null): Promise<void>;
137
152
  getTableData(selectors: any, _params?: null, options?: {}, world?: null): Promise<any>;
138
153
  analyzeTable(selectors: any, query: any, operator: any, value: any, _params?: null, options?: {}, world?: null): Promise<{} | undefined>;
139
154
  _replaceWithLocalData(value: any, world: any, _decrypt?: boolean, totpWait?: boolean): Promise<string>;
140
155
  _getLoadTimeout(options: any): number;
156
+ _getFindElementTimeout(options: any): any;
157
+ saveStoreState(path?: string | null, world?: any): Promise<void>;
158
+ restoreSaveState(path?: string | null, world?: any): Promise<void>;
141
159
  waitForPageLoad(options?: {}, world?: null): Promise<void>;
142
160
  closePage(options?: {}, world?: null): Promise<void>;
161
+ tableCellOperation(headerText: string, rowText: string, options: any, _params: Params, world?: null): Promise<void>;
143
162
  saveTestDataAsGlobal(options: any, world: any): void;
144
163
  setViewportSize(width: number, hight: number, options?: {}, world?: null): Promise<void>;
145
164
  reloadPage(options?: {}, world?: null): Promise<void>;
146
165
  scrollIfNeeded(element: any, info: any): Promise<void>;
147
166
  beforeStep(world: any, step: any): Promise<void>;
167
+ getAriaSnapshot(): Promise<string | null>;
148
168
  afterStep(world: any, step: any): Promise<void>;
149
169
  }
150
170
  type JsonTimestamp = number;