automation_model 1.0.596-dev → 1.0.596-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;
@@ -31,6 +33,7 @@ export declare const Types: {
31
33
  WAIT_FOR_TEXT_TO_DISAPPEAR: string;
32
34
  VERIFY_ATTRIBUTE: string;
33
35
  VERIFY_TEXT_WITH_RELATION: string;
36
+ BRUNO: string;
34
37
  };
35
38
  export declare const apps: {};
36
39
  declare class StableBrowser {
@@ -46,9 +49,11 @@ declare class StableBrowser {
46
49
  appName: string;
47
50
  tags: null;
48
51
  isRecording: boolean;
52
+ initSnapshotTaken: boolean;
49
53
  constructor(browser: Browser, page: Page, logger?: any, context?: any, world?: any);
50
54
  registerEventListeners(context: any): void;
51
55
  switchApp(appName: any): Promise<void>;
56
+ switchTab(tabTitleOrIndex: number | string): Promise<void>;
52
57
  registerConsoleLogListener(page: Page, context: any): void;
53
58
  registerRequestListener(page: Page, context: any, logFile: string): void;
54
59
  goto(url: string, world?: null): Promise<void>;
@@ -58,7 +63,7 @@ declare class StableBrowser {
58
63
  elementCount: number;
59
64
  randomToken: string;
60
65
  }>;
61
- _collectLocatorInformation(selectorHierarchy: any, index: number | undefined, scope: any, foundLocators: any, _params: Params, info: any, visibleOnly?: boolean, allowDisabled?: boolean | undefined): Promise<void>;
66
+ _collectLocatorInformation(selectorHierarchy: any, index: number | undefined, scope: any, foundLocators: any, _params: Params, info: any, visibleOnly?: boolean, allowDisabled?: boolean | undefined, element_name?: null): Promise<void>;
62
67
  closeUnexpectedPopups(info: any, _params: any): Promise<{
63
68
  rerun: boolean;
64
69
  }>;
@@ -66,12 +71,13 @@ declare class StableBrowser {
66
71
  _findFrameScope(selectors: any, timeout: number | undefined, info: any): Promise<any>;
67
72
  _getDocumentBody(selectors: any, timeout: number | undefined, info: any): Promise<any>;
68
73
  _locate_internal(selectors: any, info: any, _params?: Params, timeout?: number, allowDisabled?: boolean | undefined): Promise<any>;
69
- _scanLocatorsGroup(locatorsGroup: any, scope: any, _params: any, info: any, visibleOnly: any, allowDisabled?: boolean | undefined): Promise<{
74
+ _scanLocatorsGroup(locatorsGroup: any, scope: any, _params: any, info: any, visibleOnly: any, allowDisabled?: boolean | undefined, element_name: any): Promise<{
70
75
  foundElements: any[];
71
76
  }>;
72
77
  simpleClick(elementDescription: any, _params?: Params, options?: {}, world?: null): Promise<void>;
73
78
  simpleClickType(elementDescription: any, value: any, _params?: Params, options?: {}, world?: null): Promise<void>;
74
79
  click(selectors: any, _params?: Params, options?: {}, world?: null): Promise<any>;
80
+ waitForElement(selectors: any, _params?: Params, options?: {}, world?: null): Promise<boolean>;
75
81
  setCheck(selectors: any, checked?: boolean, _params?: Params, options?: {}, world?: null): Promise<any>;
76
82
  hover(selectors: any, _params?: Params, options?: {}, world?: null): Promise<any>;
77
83
  selectOption(selectors: any, values: any, _params?: null, options?: {}, world?: null): Promise<any>;
@@ -108,9 +114,9 @@ declare class StableBrowser {
108
114
  }>;
109
115
  containsPattern(selectors: any, pattern: any, text: any, _params?: null, options?: {}, world?: null): Promise<any>;
110
116
  containsText(selectors: any, text: any, climb: any, _params?: null, options?: {}, world?: null): Promise<any>;
111
- _getDataFile(world?: null): string;
112
117
  waitForUserInput(message: any, world?: null): Promise<void>;
113
118
  setTestData(testData: any, world?: null): void;
119
+ overwriteTestData(testData: any, world?: null): void;
114
120
  _getDataFilePath(fileName: any): string;
115
121
  _parseCSVSync(filePath: any): Promise<unknown>;
116
122
  loadTestData(type: string, dataSelector: string, world?: null): {
@@ -120,8 +126,8 @@ declare class StableBrowser {
120
126
  };
121
127
  loadTestDataAsync(type: string, dataSelector: string, world?: null): Promise<any>;
122
128
  getTestData(world?: null): {};
123
- _screenShot(options?: {}, world?: null, info?: null, focusedElement?: null): Promise<{}>;
124
- takeScreenshot(screenshotPath: any, focusedElement?: null): Promise<any>;
129
+ _screenShot(options?: {}, world?: null, info?: null): Promise<{}>;
130
+ takeScreenshot(screenshotPath: any): Promise<any>;
125
131
  verifyElementExistInPage(selectors: any, _params?: null, options?: {}, world?: null): Promise<any>;
126
132
  extractAttribute(selectors: any, attribute: any, variable: any, _params?: null, options?: {}, world?: null): Promise<any>;
127
133
  verifyAttribute(selectors: any, attribute: any, value: any, _params?: null, options?: {}, world?: null): Promise<any>;
@@ -130,28 +136,39 @@ declare class StableBrowser {
130
136
  emailCode: any;
131
137
  }>;
132
138
  _highlightElements(scope: any, css: any): Promise<void>;
133
- _unhighlightElements(scope: any, css: any): Promise<void>;
134
139
  verifyPagePath(pathPart: any, options?: {}, world?: null): Promise<{} | undefined>;
135
- findTextInAllFrames(dateAlternatives: any, numberAlternatives: any, text: any, state: any): Promise<{
140
+ verifyPageTitle(title: any, options?: {}, world?: null): Promise<{} | undefined>;
141
+ findTextInAllFrames(dateAlternatives: any, numberAlternatives: any, text: any, state: any, partial?: boolean, ignoreCase?: boolean): Promise<{
136
142
  elementCount: number;
137
143
  randomToken: string;
138
144
  }[]>;
139
145
  verifyTextExistInPage(text: any, options?: {}, world?: null): Promise<any>;
140
146
  waitForTextToDisappear(text: any, options?: {}, world?: null): Promise<any>;
141
147
  verifyTextRelatedToText(textAnchor: string, climb: number, textToVerify: string, options?: {}, world?: any): Promise<any>;
148
+ findRelatedTextInAllFrames(textAnchor: string, climb: number, textToVerify: string, params?: Params, options?: {}, world?: any): Promise<{
149
+ elementCount: number;
150
+ randomToken: string;
151
+ }[]>;
142
152
  visualVerification(text: any, options?: {}, world?: null): Promise<{} | undefined>;
143
153
  verifyTableData(selectors: any, data: any, _params?: null, options?: {}, world?: null): Promise<void>;
144
154
  getTableData(selectors: any, _params?: null, options?: {}, world?: null): Promise<any>;
145
155
  analyzeTable(selectors: any, query: any, operator: any, value: any, _params?: null, options?: {}, world?: null): Promise<{} | undefined>;
146
156
  _replaceWithLocalData(value: any, world: any, _decrypt?: boolean, totpWait?: boolean): Promise<string>;
147
157
  _getLoadTimeout(options: any): number;
158
+ _getFindElementTimeout(options: any): any;
159
+ saveStoreState(path?: string | null, world?: any): Promise<void>;
160
+ restoreSaveState(path?: string | null, world?: any): Promise<void>;
148
161
  waitForPageLoad(options?: {}, world?: null): Promise<void>;
149
162
  closePage(options?: {}, world?: null): Promise<void>;
163
+ tableCellOperation(headerText: string, rowText: string, options: any, _params: Params, world?: null): Promise<void>;
150
164
  saveTestDataAsGlobal(options: any, world: any): void;
151
165
  setViewportSize(width: number, hight: number, options?: {}, world?: null): Promise<void>;
152
166
  reloadPage(options?: {}, world?: null): Promise<void>;
153
167
  scrollIfNeeded(element: any, info: any): Promise<void>;
168
+ beforeScenario(world: any, scenario: any): Promise<void>;
169
+ afterScenario(world: any, scenario: any): Promise<void>;
154
170
  beforeStep(world: any, step: any): Promise<void>;
171
+ getAriaSnapshot(): Promise<string | null>;
155
172
  afterStep(world: any, step: any): Promise<void>;
156
173
  }
157
174
  type JsonTimestamp = number;