@haibun/web-playwright 1.42.4 → 1.44.0

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.
Files changed (45) hide show
  1. package/build/BrowserFactory.d.ts +15 -27
  2. package/build/BrowserFactory.d.ts.map +1 -1
  3. package/build/BrowserFactory.js +71 -50
  4. package/build/BrowserFactory.js.map +1 -1
  5. package/build/PlaywrightEvents.d.ts +3 -3
  6. package/build/PlaywrightEvents.d.ts.map +1 -1
  7. package/build/PlaywrightEvents.js +17 -13
  8. package/build/PlaywrightEvents.js.map +1 -1
  9. package/build/monitor/XXlogToMonitor.d.ts +8 -0
  10. package/build/monitor/XXlogToMonitor.d.ts.map +1 -0
  11. package/build/monitor/XXlogToMonitor.js +151 -0
  12. package/build/monitor/XXlogToMonitor.js.map +1 -0
  13. package/build/monitor/controls.d.ts +3 -0
  14. package/build/monitor/controls.d.ts.map +1 -0
  15. package/build/monitor/controls.js +318 -0
  16. package/build/monitor/controls.js.map +1 -0
  17. package/build/monitor/disclosureJson.d.ts +3 -0
  18. package/build/monitor/disclosureJson.d.ts.map +1 -0
  19. package/build/monitor/disclosureJson.js +121 -0
  20. package/build/monitor/disclosureJson.js.map +1 -0
  21. package/build/monitor/mermaidDiagram.d.ts +22 -0
  22. package/build/monitor/mermaidDiagram.d.ts.map +1 -0
  23. package/build/monitor/mermaidDiagram.js +199 -0
  24. package/build/monitor/mermaidDiagram.js.map +1 -0
  25. package/build/monitor/messages.d.ts +18 -0
  26. package/build/monitor/messages.d.ts.map +1 -0
  27. package/build/monitor/messages.js +303 -0
  28. package/build/monitor/messages.js.map +1 -0
  29. package/build/monitor/monitor.d.ts +16 -0
  30. package/build/monitor/monitor.d.ts.map +1 -0
  31. package/build/monitor/monitor.js +61 -0
  32. package/build/monitor/monitor.js.map +1 -0
  33. package/build/monitor/monitorHandler.d.ts +12 -0
  34. package/build/monitor/monitorHandler.d.ts.map +1 -0
  35. package/build/monitor/monitorHandler.js +89 -0
  36. package/build/monitor/monitorHandler.js.map +1 -0
  37. package/build/rest-playwright.d.ts +87 -0
  38. package/build/rest-playwright.d.ts.map +1 -0
  39. package/build/rest-playwright.js +219 -0
  40. package/build/rest-playwright.js.map +1 -0
  41. package/build/web-playwright.d.ts +424 -328
  42. package/build/web-playwright.d.ts.map +1 -1
  43. package/build/web-playwright.js +334 -125
  44. package/build/web-playwright.js.map +1 -1
  45. package/package.json +5 -4
@@ -1,343 +1,439 @@
1
- import { Page } from 'playwright';
2
- import { TNamed, TStepResult, AStepper, TWorld, TFeatureStep, TAnyFixme } from '@haibun/core/build/lib/defs.js';
3
- import { BrowserFactory, TBrowserFactoryOptions } from './BrowserFactory.js';
1
+ import { Page, Download } from 'playwright';
2
+ import { IHasOptions, TNamed, AStepper, TWorld, TFeatureStep, TAnyFixme, IStepperCycles } from '@haibun/core/build/lib/defs.js';
3
+ import { BrowserFactory, TTaggedBrowserFactoryOptions } from './BrowserFactory.js';
4
4
  import { AStorage } from '@haibun/domain-storage/build/AStorage.js';
5
- import { TActionStage, TTraceMessageContext } from '@haibun/core/build/lib/interfaces/logger.js';
6
- declare const WebPlaywright: {
7
- new (): {
8
- requireDomains: string[];
9
- options: {
10
- [x: string]: {
11
- desc: string;
12
- parse: (input: string) => {
13
- error: string;
14
- result?: undefined;
15
- } | {
16
- result: boolean;
17
- error?: undefined;
18
- };
19
- dependsOn?: undefined;
20
- } | {
21
- desc: string;
22
- parse: (input: string) => {
23
- error: string;
24
- result?: undefined;
25
- } | {
26
- result: string;
27
- error?: undefined;
28
- };
29
- dependsOn?: undefined;
30
- } | {
31
- desc: string;
32
- parse: (input: string) => {
33
- error: string;
34
- result?: undefined;
35
- } | {
36
- result: boolean;
37
- error?: undefined;
38
- };
39
- dependsOn: string[];
5
+ import { EExecutionMessageType, TMessageContext } from '@haibun/core/build/lib/interfaces/logger.js';
6
+ import { TCapturedResponse } from './rest-playwright.js';
7
+ export declare enum EMonitoringTypes {
8
+ MONITOR_ALL = "all",
9
+ MONITOR_EACH = "each"
10
+ }
11
+ type TRequestOptions = {
12
+ headers?: Record<string, string>;
13
+ postData?: string | URLSearchParams | FormData | Blob | ArrayBuffer | ArrayBufferView;
14
+ userAgent?: string;
15
+ };
16
+ declare class WebPlaywright extends AStepper implements IHasOptions {
17
+ cycles: IStepperCycles;
18
+ static STORAGE: string;
19
+ static PERSISTENT_DIRECTORY: string;
20
+ requireDomains: string[];
21
+ options: {
22
+ [WebPlaywright.PERSISTENT_DIRECTORY]: {
23
+ desc: string;
24
+ parse: (input: string) => {
25
+ parseError: string;
26
+ result?: undefined;
40
27
  } | {
41
- desc: string;
42
- parse: (input: string) => {
43
- error: string;
44
- result?: undefined;
45
- } | {
46
- result: number;
47
- error?: undefined;
48
- };
49
- dependsOn?: undefined;
50
- };
51
- HEADLESS: {
52
- desc: string;
53
- parse: (input: string) => {
54
- error: string;
55
- result?: undefined;
56
- } | {
57
- result: boolean;
58
- error?: undefined;
59
- };
60
- };
61
- DEVTOOLS: {
62
- desc: string;
63
- parse: (input: string) => {
64
- error: string;
65
- result?: undefined;
66
- } | {
67
- result: boolean;
68
- error?: undefined;
69
- };
70
- };
71
- ARGS: {
72
- desc: string;
73
- parse: (input: string) => {
74
- error: string;
75
- result?: undefined;
76
- } | {
77
- result: string;
78
- error?: undefined;
79
- };
80
- };
81
- CAPTURE_VIDEO: {
82
- desc: string;
83
- parse: (input: string) => {
84
- error: string;
85
- result?: undefined;
86
- } | {
87
- result: boolean;
88
- error?: undefined;
89
- };
90
- dependsOn: string[];
91
- };
92
- STEP_CAPTURE_SCREENSHOT: {
93
- desc: string;
94
- parse: (input: string) => {
95
- error: string;
96
- result?: undefined;
97
- } | {
98
- result: boolean;
99
- error?: undefined;
100
- };
101
- };
102
- TIMEOUT: {
103
- desc: string;
104
- parse: (input: string) => {
105
- error: string;
106
- result?: undefined;
107
- } | {
108
- result: number;
109
- error?: undefined;
110
- };
28
+ result: string;
29
+ parseError?: undefined;
111
30
  };
112
31
  };
113
- hasFactory: boolean;
114
- bf?: BrowserFactory;
115
- storage?: AStorage;
116
- factoryOptions?: TBrowserFactoryOptions;
117
- tab: number;
118
- withFrame: string;
119
- downloaded: string[];
120
- captureVideo: string;
121
- setWorld(world: TWorld, steppers: AStepper[]): Promise<void>;
122
- getCaptureDir(type: string): Promise<string>;
123
- getBrowserFactory(): Promise<BrowserFactory>;
124
- getContext(): Promise<import("playwright").BrowserContext>;
125
- getPage(): Promise<Page>;
126
- withPage<TReturn>(f: TAnyFixme): Promise<TReturn>;
127
- onFailure(result: TStepResult, step?: TFeatureStep): Promise<void | TTraceMessageContext>;
128
- nextStep(step: TFeatureStep): Promise<void>;
129
- endFeature(): Promise<void>;
130
- close(): Promise<void>;
131
- finish(): Promise<void>;
132
- sees(text: string, selector: string): Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
133
- steps: {
134
- press: {
135
- gwta: string;
136
- action: ({ key }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
137
- };
138
- type: {
139
- gwta: string;
140
- action: ({ text }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
141
- };
142
- inputVariable: {
143
- gwta: string;
144
- action: ({ what, field }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
145
- };
146
- selectionOption: {
147
- gwta: string;
148
- action: ({ option, field }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
149
- };
150
- dialogIs: {
151
- gwta: string;
152
- action: ({ what, type, value }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
153
- };
154
- dialogIsUnset: {
155
- gwta: string;
156
- action: ({ what, type }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
157
- };
158
- seeTestId: {
159
- gwta: string;
160
- action: ({ testId }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
161
- };
162
- seeTextIn: {
163
- gwta: string;
164
- action: ({ text, selector }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
165
- };
166
- seeText: {
167
- gwta: string;
168
- action: ({ text }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
169
- };
170
- waitFor: {
171
- gwta: string;
172
- action: ({ what }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
173
- };
174
- onNewPage: {
175
- gwta: string;
176
- action: () => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
177
- };
178
- waitForTabX: {
179
- gwta: string;
180
- action: ({ tab }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
181
- };
182
- onTabX: {
183
- gwta: string;
184
- action: ({ tab }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
185
- };
186
- beOnPage: {
187
- gwta: string;
188
- action: ({ name }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
189
- };
190
- extensionContext: {
191
- gwta: string;
192
- action: ({ tab }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
193
- };
194
- cookieIs: {
195
- gwta: string;
196
- action: ({ name, value }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
197
- };
198
- URIContains: {
199
- gwta: string;
200
- action: ({ what }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
201
- };
202
- URIQueryParameterIs: {
203
- gwta: string;
204
- action: ({ what, value }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
205
- };
206
- URIStartsWith: {
207
- gwta: string;
208
- action: ({ start }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
209
- };
210
- URIMatches: {
211
- gwta: string;
212
- action: ({ what }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
213
- };
214
- caseInsensitiveURIMatches: {
215
- gwta: string;
216
- action: ({ what }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
217
- };
218
- clickByAltText: {
219
- gwta: string;
220
- action: ({ altText }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
221
- };
222
- clickByTestId: {
223
- gwta: string;
224
- action: ({ testId }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
225
- };
226
- clickByPlaceholder: {
227
- gwta: string;
228
- action: ({ placeholder }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
229
- };
230
- clickByRole: {
231
- gwta: string;
232
- action: ({ roleStr }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
233
- };
234
- clickByLabel: {
235
- gwta: string;
236
- action: ({ title: label }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
237
- };
238
- clickByTitle: {
239
- gwta: string;
240
- action: ({ title }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
241
- };
242
- clickByText: {
243
- gwta: string;
244
- action: ({ text }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
245
- };
246
- clickOn: {
247
- gwta: string;
248
- action: ({ name }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
249
- };
250
- clickCheckbox: {
251
- gwta: string;
252
- action: ({ name }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
253
- };
254
- clickShared: {
255
- gwta: string;
256
- action: ({ id }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
257
- };
258
- clickQuoted: {
259
- gwta: string;
260
- action: ({ name }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
261
- };
262
- clickLink: {
263
- gwta: string;
264
- action: ({ name }: TNamed, featureStep: TFeatureStep) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
265
- };
266
- clickButton: {
267
- gwta: string;
268
- action: ({ id }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
269
- };
270
- gotoPage: {
271
- gwta: string;
272
- action: ({ name }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
273
- };
274
- reloadPage: {
275
- gwta: string;
276
- action: () => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
277
- };
278
- goBack: {
279
- gwta: string;
280
- action: () => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
281
- };
282
- blur: {
283
- gwta: string;
284
- action: ({ what }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
285
- };
286
- pressBack: {
287
- gwta: string;
288
- action: () => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
289
- };
290
- usingBrowserVar: {
291
- gwta: string;
292
- action: ({ browser }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
293
- };
294
- uploadFile: {
295
- gwta: string;
296
- action: ({ file, selector }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
297
- };
298
- waitForDownload: {
299
- gwta: string;
300
- action: ({ file }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
32
+ [WebPlaywright.STORAGE]: {
33
+ desc: string;
34
+ parse: (input: string) => {
35
+ parseError: string;
36
+ result?: undefined;
37
+ } | {
38
+ result: string;
39
+ parseError?: undefined;
301
40
  };
302
- withFrame: {
303
- gwta: string;
304
- action: ({ name }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
41
+ required: boolean;
42
+ };
43
+ MONITOR: {
44
+ desc: string;
45
+ parse: (input: string) => {
46
+ parseError: string;
47
+ result?: undefined;
48
+ } | {
49
+ result: string;
50
+ parseError?: undefined;
305
51
  };
306
- captureDialog: {
307
- gwta: string;
308
- action: ({ where }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
52
+ };
53
+ HEADLESS: {
54
+ desc: string;
55
+ parse: (input: string) => {
56
+ parseError: string;
57
+ result?: undefined;
58
+ } | {
59
+ result: boolean;
60
+ parseError?: undefined;
309
61
  };
310
- takeScreenshot: {
311
- gwta: string;
312
- action: (notUsed: any, featureStep: TFeatureStep) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
62
+ };
63
+ DEVTOOLS: {
64
+ desc: string;
65
+ parse: (input: string) => {
66
+ parseError: string;
67
+ result?: undefined;
68
+ } | {
69
+ result: boolean;
70
+ parseError?: undefined;
313
71
  };
314
- assertOpen: {
315
- gwta: string;
316
- action: ({ what, using }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
72
+ };
73
+ ARGS: {
74
+ desc: string;
75
+ parse: (input: string) => {
76
+ parseError: string;
77
+ result?: undefined;
78
+ } | {
79
+ result: string;
80
+ parseError?: undefined;
317
81
  };
318
- setToURIQueryParameter: {
319
- gwta: string;
320
- action: ({ what, where }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
82
+ };
83
+ CAPTURE_VIDEO: {
84
+ desc: string;
85
+ parse: (input: string) => {
86
+ parseError: string;
87
+ result?: undefined;
88
+ } | {
89
+ result: boolean;
90
+ parseError?: undefined;
321
91
  };
322
- resizeWindow: {
323
- gwta: string;
324
- action: ({ width, height }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
92
+ dependsOn: string[];
93
+ };
94
+ TIMEOUT: {
95
+ desc: string;
96
+ parse: (input: string) => {
97
+ parseError: string;
98
+ result?: undefined;
99
+ } | {
100
+ result: number;
101
+ parseError?: undefined;
325
102
  };
326
103
  };
327
- setBrowser(browser: string): import("@haibun/core/build/lib/defs.js").TOKActionResult;
328
- newTab(): void;
329
- captureFailureScreenshot(event: "failure", stage: TActionStage, step: TFeatureStep): Promise<void>;
330
- captureRequestScreenshot(event: "request", stage: TActionStage, seq: number): Promise<void>;
331
- captureScreenshot(event: "failure" | "request", stage: TActionStage, details: {
332
- seq?: number;
333
- step?: TFeatureStep;
334
- }): Promise<void>;
335
- world?: TWorld;
336
- getWorld(): TWorld;
337
104
  };
338
- STORAGE: string;
339
- PERSISTENT_DIRECTORY: string;
340
- };
105
+ hasFactory: boolean;
106
+ bf?: BrowserFactory;
107
+ storage?: AStorage;
108
+ factoryOptions?: TTaggedBrowserFactoryOptions;
109
+ tab: number;
110
+ withFrame: string;
111
+ downloaded: string[];
112
+ captureVideo: boolean;
113
+ closers: Array<() => Promise<void>>;
114
+ logElementError: TAnyFixme;
115
+ monitor: EMonitoringTypes;
116
+ static monitorPage: Page;
117
+ userAgentPages: {
118
+ [name: string]: Page;
119
+ };
120
+ apiUserAgent: string;
121
+ extraHTTPHeaders: {
122
+ [name: string]: string;
123
+ };
124
+ BROWSER_STATE_PATH: string;
125
+ expectedDownload: Promise<Download>;
126
+ setWorld(world: TWorld, steppers: AStepper[]): Promise<void>;
127
+ getCaptureDir(type: string): Promise<string>;
128
+ getBrowserFactory(): Promise<BrowserFactory>;
129
+ getExistingBrowserContext(tag?: import("@haibun/core/build/lib/defs.js").TTag): Promise<import("playwright").BrowserContext>;
130
+ getPage(): Promise<Page>;
131
+ withPage<TReturn>(f: TAnyFixme): Promise<TReturn>;
132
+ sees(text: string, selector: string): Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
133
+ getCookies(): Promise<import("playwright").Cookie[]>;
134
+ steps: {
135
+ openDevTools: {
136
+ gwta: string;
137
+ action: () => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
138
+ };
139
+ press: {
140
+ gwta: string;
141
+ action: ({ key }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
142
+ };
143
+ type: {
144
+ gwta: string;
145
+ action: ({ text }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
146
+ };
147
+ inputVariable: {
148
+ gwta: string;
149
+ action: ({ what, field }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
150
+ };
151
+ selectionOption: {
152
+ gwta: string;
153
+ action: ({ option, field }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
154
+ };
155
+ dialogIs: {
156
+ gwta: string;
157
+ action: ({ what, type, value }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
158
+ };
159
+ dialogIsUnset: {
160
+ gwta: string;
161
+ action: ({ what, type }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
162
+ };
163
+ seeTestId: {
164
+ gwta: string;
165
+ action: ({ testId }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
166
+ };
167
+ seeTextIn: {
168
+ gwta: string;
169
+ action: ({ text, selector }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
170
+ };
171
+ seeText: {
172
+ gwta: string;
173
+ action: ({ text }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
174
+ };
175
+ waitFor: {
176
+ gwta: string;
177
+ action: ({ what }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
178
+ };
179
+ createMonitor: {
180
+ gwta: string;
181
+ action: () => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
182
+ };
183
+ finishMonitor: {
184
+ gwta: string;
185
+ action: () => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
186
+ };
187
+ onNewPage: {
188
+ gwta: string;
189
+ action: () => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
190
+ };
191
+ waitForTabX: {
192
+ gwta: string;
193
+ action: ({ tab }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
194
+ };
195
+ onTabX: {
196
+ gwta: string;
197
+ action: ({ tab }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
198
+ };
199
+ beOnPage: {
200
+ gwta: string;
201
+ action: ({ name }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
202
+ };
203
+ extensionContext: {
204
+ gwta: string;
205
+ action: ({ tab }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
206
+ };
207
+ cookieIs: {
208
+ gwta: string;
209
+ action: ({ name, value }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
210
+ };
211
+ URIContains: {
212
+ gwta: string;
213
+ action: ({ what }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
214
+ };
215
+ URIQueryParameterIs: {
216
+ gwta: string;
217
+ action: ({ what, value }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
218
+ };
219
+ URIStartsWith: {
220
+ gwta: string;
221
+ action: ({ start }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
222
+ };
223
+ URIMatches: {
224
+ gwta: string;
225
+ action: ({ what }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
226
+ };
227
+ caseInsensitiveURIMatches: {
228
+ gwta: string;
229
+ action: ({ what }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
230
+ };
231
+ clickByAltText: {
232
+ gwta: string;
233
+ action: ({ altText }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
234
+ };
235
+ clickByTestId: {
236
+ gwta: string;
237
+ action: ({ testId }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
238
+ };
239
+ clickByPlaceholder: {
240
+ gwta: string;
241
+ action: ({ placeholder }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
242
+ };
243
+ clickByRole: {
244
+ gwta: string;
245
+ action: ({ roleStr }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
246
+ };
247
+ clickByLabel: {
248
+ gwta: string;
249
+ action: ({ title: label }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
250
+ };
251
+ clickByTitle: {
252
+ gwta: string;
253
+ action: ({ title }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
254
+ };
255
+ clickByText: {
256
+ gwta: string;
257
+ action: ({ text }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
258
+ };
259
+ clickOn: {
260
+ gwta: string;
261
+ action: ({ name }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
262
+ };
263
+ clickCheckbox: {
264
+ gwta: string;
265
+ action: ({ name }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
266
+ };
267
+ clickShared: {
268
+ gwta: string;
269
+ action: ({ id }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
270
+ };
271
+ clickQuoted: {
272
+ gwta: string;
273
+ action: ({ name }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
274
+ };
275
+ clickLink: {
276
+ gwta: string;
277
+ action: ({ name }: TNamed, featureStep: TFeatureStep) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
278
+ };
279
+ clickButton: {
280
+ gwta: string;
281
+ action: ({ id }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
282
+ };
283
+ gotoPage: {
284
+ gwta: string;
285
+ action: ({ name }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
286
+ };
287
+ reloadPage: {
288
+ gwta: string;
289
+ action: () => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
290
+ };
291
+ goBack: {
292
+ gwta: string;
293
+ action: () => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
294
+ };
295
+ blur: {
296
+ gwta: string;
297
+ action: ({ what }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
298
+ };
299
+ usingBrowserVar: {
300
+ gwta: string;
301
+ action: ({ browser }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
302
+ };
303
+ uploadFile: {
304
+ gwta: string;
305
+ action: ({ file, selector }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
306
+ };
307
+ waitForFileChooser: {
308
+ gwta: string;
309
+ action: ({ file, selector }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
310
+ };
311
+ expectDownload: {
312
+ gwta: string;
313
+ action: () => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
314
+ };
315
+ receiveDownload: {
316
+ gwta: string;
317
+ action: ({ file }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
318
+ };
319
+ waitForDownload: {
320
+ gwta: string;
321
+ action: ({ file }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
322
+ };
323
+ withFrame: {
324
+ gwta: string;
325
+ action: ({ name }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
326
+ };
327
+ captureDialog: {
328
+ gwta: string;
329
+ action: ({ where }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
330
+ };
331
+ takeScreenshot: {
332
+ gwta: string;
333
+ action: (notUsed: any, featureStep: TFeatureStep) => Promise<import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
334
+ };
335
+ assertOpen: {
336
+ gwta: string;
337
+ action: ({ what, using }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
338
+ };
339
+ setToURIQueryParameter: {
340
+ gwta: string;
341
+ action: ({ what, where }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
342
+ };
343
+ resizeWindow: {
344
+ gwta: string;
345
+ action: ({ width, height }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
346
+ };
347
+ setApiUserAgent: {
348
+ gwta: string;
349
+ action: ({ agent }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
350
+ };
351
+ addBasicAuthCredentials: {
352
+ gwta: string;
353
+ action: ({ username, password }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
354
+ };
355
+ addAuthBearerToken: {
356
+ gwta: string;
357
+ action: ({ token }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
358
+ };
359
+ restTokenRequest: {
360
+ gwta: string;
361
+ action: ({ endpoint }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
362
+ };
363
+ restTokenLogout: {
364
+ gwta: string;
365
+ action: ({ endpoint }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
366
+ };
367
+ acceptEndpointRequest: {
368
+ gwta: string;
369
+ action: ({ accept, method, endpoint }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
370
+ };
371
+ restEndpointRequest: {
372
+ gwta: string;
373
+ action: ({ method, endpoint }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
374
+ };
375
+ filterResponseJson: {
376
+ gwta: string;
377
+ action: ({ property, match }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
378
+ };
379
+ filteredResponseLengthIs: {
380
+ gwta: string;
381
+ action: ({ length }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
382
+ };
383
+ showResponseLength: {
384
+ gwta: string;
385
+ action: () => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
386
+ };
387
+ showFilteredLength: {
388
+ gwta: string;
389
+ action: () => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
390
+ };
391
+ responseJsonLengthIs: {
392
+ gwta: string;
393
+ action: ({ length }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
394
+ };
395
+ restEndpointFilteredPropertyRequest: {
396
+ gwta: string;
397
+ action: ({ property, method, endpoint, status }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
398
+ };
399
+ restEndpointRequestWithPayload: {
400
+ gwta: string;
401
+ action: ({ method, endpoint, payload }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
402
+ };
403
+ restLastStatusIs: {
404
+ gwta: string;
405
+ action: ({ status }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
406
+ };
407
+ restResponsePropertyIs: {
408
+ gwta: string;
409
+ action: ({ property, value }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
410
+ };
411
+ restResponseIs: {
412
+ gwta: string;
413
+ action: ({ value }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
414
+ };
415
+ };
416
+ setBrowser(browser: string): import("@haibun/core/build/lib/defs.js").TOKActionResult;
417
+ newTab(): void;
418
+ captureFailureScreenshot(event: EExecutionMessageType, step: TFeatureStep): Promise<void>;
419
+ captureScreenshotAndLog(event: EExecutionMessageType, details: {
420
+ seq?: number;
421
+ step?: TFeatureStep;
422
+ }): Promise<void>;
423
+ captureScreenshot(event: EExecutionMessageType, details: {
424
+ seq?: number;
425
+ step?: TFeatureStep;
426
+ }): Promise<{
427
+ context: TMessageContext;
428
+ path: string;
429
+ }>;
430
+ setExtraHTTPHeaders(headers: {
431
+ [name: string]: string;
432
+ }): Promise<void>;
433
+ withPageFetch(endpoint: string, method?: string, requestOptions?: TRequestOptions): Promise<TCapturedResponse>;
434
+ callClosers(): Promise<void>;
435
+ createMonitor: () => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
436
+ runtimePath(world?: TWorld): Promise<string>;
437
+ }
341
438
  export default WebPlaywright;
342
- export type TWebPlaywright = typeof WebPlaywright;
343
439
  //# sourceMappingURL=web-playwright.d.ts.map