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