@haibun/web-playwright 1.32.1 → 1.32.3
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/package.json +6 -6
- package/build/BrowserFactory.d.ts +0 -75
- package/build/BrowserFactory.js +0 -108
- package/build/BrowserFactory.js.map +0 -1
- package/build/BrowserFactory.test.d.ts +0 -1
- package/build/BrowserFactory.test.js +0 -66
- package/build/BrowserFactory.test.js.map +0 -1
- package/build/PlaywrightEvents.d.ts +0 -13
- package/build/PlaywrightEvents.js +0 -80
- package/build/PlaywrightEvents.js.map +0 -1
- package/build/web-playwright.d.ts +0 -330
- package/build/web-playwright.js +0 -598
- package/build/web-playwright.js.map +0 -1
- package/build/web-playwright.test.d.ts +0 -1
- package/build/web-playwright.test.js +0 -27
- package/build/web-playwright.test.js.map +0 -1
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
import { Page } from 'playwright';
|
|
2
|
-
import { TNamed, TStepResult, AStepper, TWorld, TVStep, TAnyFixme } from '@haibun/core/build/lib/defs.js';
|
|
3
|
-
import { BrowserFactory, TBrowserFactoryOptions } from './BrowserFactory.js';
|
|
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[];
|
|
40
|
-
} | {
|
|
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
|
-
};
|
|
111
|
-
};
|
|
112
|
-
};
|
|
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?: TVStep): Promise<void | TTraceMessageContext>;
|
|
128
|
-
nextStep(step: TVStep): 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
|
-
clickByAltText: {
|
|
215
|
-
gwta: string;
|
|
216
|
-
action: ({ altText }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
217
|
-
};
|
|
218
|
-
clickByTestId: {
|
|
219
|
-
gwta: string;
|
|
220
|
-
action: ({ testId }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
221
|
-
};
|
|
222
|
-
clickByPlaceholder: {
|
|
223
|
-
gwta: string;
|
|
224
|
-
action: ({ placeholder }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
225
|
-
};
|
|
226
|
-
clickByRole: {
|
|
227
|
-
gwta: string;
|
|
228
|
-
action: ({ roleStr }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
|
|
229
|
-
};
|
|
230
|
-
clickByLabel: {
|
|
231
|
-
gwta: string;
|
|
232
|
-
action: ({ title: label }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
233
|
-
};
|
|
234
|
-
clickByTitle: {
|
|
235
|
-
gwta: string;
|
|
236
|
-
action: ({ title }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
237
|
-
};
|
|
238
|
-
clickByText: {
|
|
239
|
-
gwta: string;
|
|
240
|
-
action: ({ text }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
241
|
-
};
|
|
242
|
-
clickOn: {
|
|
243
|
-
gwta: string;
|
|
244
|
-
action: ({ name }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
245
|
-
};
|
|
246
|
-
clickCheckbox: {
|
|
247
|
-
gwta: string;
|
|
248
|
-
action: ({ name }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
249
|
-
};
|
|
250
|
-
clickShared: {
|
|
251
|
-
gwta: string;
|
|
252
|
-
action: ({ id }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
253
|
-
};
|
|
254
|
-
clickQuoted: {
|
|
255
|
-
gwta: string;
|
|
256
|
-
action: ({ name }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
257
|
-
};
|
|
258
|
-
clickLink: {
|
|
259
|
-
gwta: string;
|
|
260
|
-
action: ({ name }: TNamed, vstep: TVStep) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
261
|
-
};
|
|
262
|
-
clickButton: {
|
|
263
|
-
gwta: string;
|
|
264
|
-
action: ({ id }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
265
|
-
};
|
|
266
|
-
gotoPage: {
|
|
267
|
-
gwta: string;
|
|
268
|
-
action: ({ name }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
|
|
269
|
-
};
|
|
270
|
-
reloadPage: {
|
|
271
|
-
gwta: string;
|
|
272
|
-
action: () => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
273
|
-
};
|
|
274
|
-
goBack: {
|
|
275
|
-
gwta: string;
|
|
276
|
-
action: () => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
277
|
-
};
|
|
278
|
-
pressBack: {
|
|
279
|
-
gwta: string;
|
|
280
|
-
action: () => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
281
|
-
};
|
|
282
|
-
usingBrowserVar: {
|
|
283
|
-
gwta: string;
|
|
284
|
-
action: ({ browser }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
285
|
-
};
|
|
286
|
-
uploadFile: {
|
|
287
|
-
gwta: string;
|
|
288
|
-
action: ({ file, selector }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
289
|
-
};
|
|
290
|
-
waitForDownload: {
|
|
291
|
-
gwta: string;
|
|
292
|
-
action: ({ file }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult | import("@haibun/core/build/lib/defs.js").TNotOKActionResult>;
|
|
293
|
-
};
|
|
294
|
-
withFrame: {
|
|
295
|
-
gwta: string;
|
|
296
|
-
action: ({ name }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
297
|
-
};
|
|
298
|
-
captureDialog: {
|
|
299
|
-
gwta: string;
|
|
300
|
-
action: ({ where }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
301
|
-
};
|
|
302
|
-
takeScreenshot: {
|
|
303
|
-
gwta: string;
|
|
304
|
-
action: (notUsed: any, vstep: TVStep) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
305
|
-
};
|
|
306
|
-
assertOpen: {
|
|
307
|
-
gwta: string;
|
|
308
|
-
action: ({ what, using }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
309
|
-
};
|
|
310
|
-
setToURIQueryParameter: {
|
|
311
|
-
gwta: string;
|
|
312
|
-
action: ({ what, where }: TNamed) => Promise<import("@haibun/core/build/lib/defs.js").TOKActionResult>;
|
|
313
|
-
};
|
|
314
|
-
};
|
|
315
|
-
setBrowser(browser: string): import("@haibun/core/build/lib/defs.js").TOKActionResult;
|
|
316
|
-
newTab(): void;
|
|
317
|
-
captureFailureScreenshot(event: 'failure', stage: TActionStage, step: TVStep): Promise<void>;
|
|
318
|
-
captureRequestScreenshot(event: 'request', stage: TActionStage, seq: number): Promise<void>;
|
|
319
|
-
captureScreenshot(event: 'failure' | 'request', stage: TActionStage, details: {
|
|
320
|
-
seq?: number;
|
|
321
|
-
step?: TVStep;
|
|
322
|
-
}): Promise<void>;
|
|
323
|
-
world?: TWorld;
|
|
324
|
-
getWorld(): TWorld;
|
|
325
|
-
};
|
|
326
|
-
STORAGE: string;
|
|
327
|
-
PERSISTENT_DIRECTORY: string;
|
|
328
|
-
};
|
|
329
|
-
export default WebPlaywright;
|
|
330
|
-
export type TWebPlaywright = typeof WebPlaywright;
|