@openclaw/diffs 2026.7.2-beta.7 → 2026.7.34
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/README.md +9 -2
- package/dist/assets/viewer-runtime.js +31 -31
- package/dist/index.js +307 -290
- package/node_modules/@pierre/diffs/node_modules/@shikijs/core/package.json +3 -3
- package/node_modules/@pierre/diffs/node_modules/@shikijs/engine-javascript/package.json +2 -2
- package/node_modules/@pierre/diffs/node_modules/@shikijs/engine-oniguruma/package.json +2 -2
- package/node_modules/@pierre/diffs/node_modules/@shikijs/primitive/dist/index.mjs +5 -6
- package/node_modules/@pierre/diffs/node_modules/@shikijs/primitive/package.json +2 -2
- package/node_modules/@pierre/diffs/node_modules/@shikijs/themes/package.json +2 -2
- package/node_modules/@pierre/diffs/node_modules/@shikijs/transformers/package.json +3 -3
- package/node_modules/@pierre/diffs/node_modules/@shikijs/types/dist/index.d.mts +1 -9
- package/node_modules/@pierre/diffs/node_modules/@shikijs/types/package.json +1 -1
- package/node_modules/@pierre/diffs/node_modules/@types/hast/README.md +2 -2
- package/node_modules/@pierre/diffs/node_modules/@types/hast/index.d.ts +0 -642
- package/node_modules/@pierre/diffs/node_modules/@types/hast/package.json +3 -9
- package/node_modules/@pierre/diffs/node_modules/@ungap/structured-clone/cjs/deserialize.js +1 -6
- package/node_modules/@pierre/diffs/node_modules/@ungap/structured-clone/cjs/serialize.js +2 -2
- package/node_modules/@pierre/diffs/node_modules/@ungap/structured-clone/esm/deserialize.js +1 -6
- package/node_modules/@pierre/diffs/node_modules/@ungap/structured-clone/esm/serialize.js +2 -2
- package/node_modules/@pierre/diffs/node_modules/@ungap/structured-clone/package.json +1 -1
- package/node_modules/@pierre/diffs/node_modules/@ungap/structured-clone/structured-json.js +1 -1
- package/node_modules/@pierre/diffs/node_modules/shiki/package.json +7 -7
- package/node_modules/@shikijs/langs/node_modules/@shikijs/types/dist/index.d.mts +1 -9
- package/node_modules/@shikijs/langs/node_modules/@shikijs/types/package.json +1 -1
- package/node_modules/@shikijs/langs/node_modules/@types/hast/README.md +2 -2
- package/node_modules/@shikijs/langs/node_modules/@types/hast/index.d.ts +0 -642
- package/node_modules/@shikijs/langs/node_modules/@types/hast/package.json +3 -9
- package/node_modules/@shikijs/langs/package.json +2 -2
- package/node_modules/playwright-core/browsers.json +18 -12
- package/node_modules/playwright-core/lib/bootstrap.js +1 -1
- package/node_modules/playwright-core/lib/coreBundle.js +12247 -13691
- package/node_modules/playwright-core/lib/server/deviceDescriptorsSource.json +2739 -0
- package/node_modules/playwright-core/lib/server/electron/loader.js +2 -5
- package/node_modules/playwright-core/lib/serverRegistry.js +1 -5
- package/node_modules/playwright-core/lib/tools/cli-client/help.json +6 -21
- package/node_modules/playwright-core/lib/tools/cli-client/program.js +1 -1
- package/node_modules/playwright-core/lib/tools/cli-client/session.js +0 -4
- package/node_modules/playwright-core/lib/tools/{skills/playwright-cli → cli-client/skill}/SKILL.md +5 -21
- package/node_modules/playwright-core/lib/tools/{skills/playwright-cli/references/test-generation.md → cli-client/skill/references/spec-driven-testing.md} +7 -135
- package/node_modules/playwright-core/lib/tools/cli-client/skill/references/test-generation.md +134 -0
- package/node_modules/playwright-core/lib/tools/utils/extension.js +8 -31
- package/node_modules/playwright-core/lib/utilsBundle.js +48599 -52627
- package/node_modules/playwright-core/lib/utilsBundle.js.LICENSE +268 -391
- package/node_modules/playwright-core/lib/vite/dashboard/assets/index-BY2S1tHT.css +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/index-C_5TMfeg.js +52 -0
- package/node_modules/playwright-core/lib/vite/dashboard/index.html +2 -2
- package/node_modules/playwright-core/lib/vite/htmlReport/report.css +1 -2
- package/node_modules/playwright-core/lib/vite/htmlReport/report.js +55 -15
- package/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DYBRYzYX.css +1 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DeBYQozu.js +32 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/index-4ZiSSCmn.css +1 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/index-Bq-mQf8S.js +193 -0
- package/node_modules/playwright-core/lib/vite/recorder/index.html +2 -2
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-LEHpjmcn.js +32 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-BNmKHKpQ.js +264 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/urlMatch-BYQrIQwR.js +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/xtermModule-CsJ4vdCR.js +9 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/codeMirrorModule.DYBRYzYX.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.CjdS-WJx.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/index.CzXZzn5A.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/index.DMMX1gXU.js +2 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/index.html +5 -5
- package/node_modules/playwright-core/lib/vite/traceViewer/snapshot.html +2 -2
- package/node_modules/playwright-core/lib/vite/traceViewer/snapshot.v8KI4P3m.js +2 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/sw.bundle.js +4 -3
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.BZQ54Kgt.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.Ut8wwJNp.js +6 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +5 -5
- package/node_modules/playwright-core/lib/vite/traceViewer/xtermModule.DYP7pi_n.css +32 -0
- package/node_modules/playwright-core/lib/xdg-open +137 -338
- package/node_modules/playwright-core/package.json +2 -2
- package/node_modules/playwright-core/types/protocol.d.ts +36 -249
- package/node_modules/playwright-core/types/structs.d.ts +1 -3
- package/node_modules/playwright-core/types/types.d.ts +268 -2011
- package/node_modules/typebox/build/compile/validator.d.mts +4 -1
- package/node_modules/typebox/build/guard/guard.d.mts +1 -1
- package/node_modules/typebox/build/guard/guard.mjs +2 -5
- package/node_modules/typebox/build/guard/string.mjs +4 -16
- package/node_modules/typebox/build/schema/engine/_functions.mjs +15 -34
- package/node_modules/typebox/build/type/action/readonly_object.d.mts +0 -5
- package/node_modules/typebox/build/type/action/readonly_object.mjs +0 -8
- package/node_modules/typebox/build/typebox.d.mts +1 -1
- package/node_modules/typebox/build/typebox.mjs +1 -1
- package/node_modules/typebox/package.json +1 -1
- package/node_modules/typebox/readme.md +32 -29
- package/openclaw.plugin.json +0 -1
- package/package.json +7 -7
- package/skills/diffs/SKILL.md +2 -2
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/SKILL.md +0 -143
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/gallery-spec.md +0 -144
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/migration.md +0 -85
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/react.md +0 -67
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/vue.md +0 -75
- package/node_modules/playwright-core/lib/vite/dashboard/assets/index-CyWAfh-p.js +0 -11
- package/node_modules/playwright-core/lib/vite/dashboard/assets/index-DhC616m4.css +0 -1
- package/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule--QdMvsKi.css +0 -1
- package/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-CwYYHbcZ.js +0 -32
- package/node_modules/playwright-core/lib/vite/recorder/assets/index-DYjdXIbE.js +0 -129
- package/node_modules/playwright-core/lib/vite/recorder/assets/index-l_lX622x.css +0 -1
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-By56iMx7.js +0 -32
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-B34OrIms.js +0 -181
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/urlMatch-L3liM589.js +0 -1
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/xtermModule-COQkjINf.js +0 -7
- package/node_modules/playwright-core/lib/vite/traceViewer/codeMirrorModule.-QdMvsKi.css +0 -1
- package/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.BLFoOugd.css +0 -1
- package/node_modules/playwright-core/lib/vite/traceViewer/index.B_TqY17P.css +0 -1
- package/node_modules/playwright-core/lib/vite/traceViewer/index.Dl36UVQT.js +0 -1
- package/node_modules/playwright-core/lib/vite/traceViewer/snapshot.B_Jk1wbt.js +0 -1
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.C7UW1sC9.css +0 -1
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.D962mr9b.js +0 -5
- package/node_modules/playwright-core/lib/vite/traceViewer/xtermModule.kHJ-D0s7.css +0 -1
- package/node_modules/playwright-core/lib/webp_codec.LICENSE +0 -173
- package/node_modules/playwright-core/lib/webp_codec.wasm +0 -0
- /package/node_modules/playwright-core/lib/tools/{skills/playwright-cli → cli-client/skill}/references/element-attributes.md +0 -0
- /package/node_modules/playwright-core/lib/tools/{skills/playwright-cli → cli-client/skill}/references/playwright-tests.md +0 -0
- /package/node_modules/playwright-core/lib/tools/{skills/playwright-cli → cli-client/skill}/references/request-mocking.md +0 -0
- /package/node_modules/playwright-core/lib/tools/{skills/playwright-cli → cli-client/skill}/references/running-code.md +0 -0
- /package/node_modules/playwright-core/lib/tools/{skills/playwright-cli → cli-client/skill}/references/session-management.md +0 -0
- /package/node_modules/playwright-core/lib/tools/{skills/playwright-cli → cli-client/skill}/references/storage-state.md +0 -0
- /package/node_modules/playwright-core/lib/tools/{skills/playwright-cli → cli-client/skill}/references/tracing.md +0 -0
- /package/node_modules/playwright-core/lib/tools/{skills/playwright-cli → cli-client/skill}/references/video-recording.md +0 -0
- /package/node_modules/playwright-core/lib/tools/{skills/playwright-trace → trace}/SKILL.md +0 -0
|
@@ -87,15 +87,14 @@ export interface Page {
|
|
|
87
87
|
* [`pageFunction`](https://playwright.dev/docs/api/class-page#page-evaluate-option-expression) invocation.
|
|
88
88
|
*
|
|
89
89
|
* If the function passed to the
|
|
90
|
-
* [page.evaluate(pageFunction[, arg
|
|
91
|
-
* [
|
|
92
|
-
*
|
|
93
|
-
* for the promise to resolve and return its value.
|
|
90
|
+
* [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate) returns a [Promise],
|
|
91
|
+
* then [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate) would wait for
|
|
92
|
+
* the promise to resolve and return its value.
|
|
94
93
|
*
|
|
95
94
|
* If the function passed to the
|
|
96
|
-
* [page.evaluate(pageFunction[, arg
|
|
95
|
+
* [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate) returns a
|
|
97
96
|
* non-[Serializable] value, then
|
|
98
|
-
* [page.evaluate(pageFunction[, arg
|
|
97
|
+
* [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate) resolves to
|
|
99
98
|
* `undefined`. Playwright also supports transferring some additional values that are not serializable by `JSON`:
|
|
100
99
|
* `-0`, `NaN`, `Infinity`, `-Infinity`.
|
|
101
100
|
*
|
|
@@ -119,7 +118,7 @@ export interface Page {
|
|
|
119
118
|
* ```
|
|
120
119
|
*
|
|
121
120
|
* [ElementHandle](https://playwright.dev/docs/api/class-elementhandle) instances can be passed as an argument to the
|
|
122
|
-
* [page.evaluate(pageFunction[, arg
|
|
121
|
+
* [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate):
|
|
123
122
|
*
|
|
124
123
|
* ```js
|
|
125
124
|
* const bodyHandle = await page.evaluateHandle('document.body');
|
|
@@ -132,23 +131,21 @@ export interface Page {
|
|
|
132
131
|
* @param pageFunction Function to be evaluated in the page context.
|
|
133
132
|
* @param arg Optional argument to pass to
|
|
134
133
|
* [`pageFunction`](https://playwright.dev/docs/api/class-page#page-evaluate-option-expression).
|
|
135
|
-
* @param options
|
|
136
134
|
*/
|
|
137
|
-
evaluate<R, Arg>(pageFunction: PageFunction<Arg, R>, arg: Arg
|
|
135
|
+
evaluate<R, Arg>(pageFunction: PageFunction<Arg, R>, arg: Arg): Promise<R>;
|
|
138
136
|
/**
|
|
139
137
|
* Returns the value of the
|
|
140
138
|
* [`pageFunction`](https://playwright.dev/docs/api/class-page#page-evaluate-option-expression) invocation.
|
|
141
139
|
*
|
|
142
140
|
* If the function passed to the
|
|
143
|
-
* [page.evaluate(pageFunction[, arg
|
|
144
|
-
* [
|
|
145
|
-
*
|
|
146
|
-
* for the promise to resolve and return its value.
|
|
141
|
+
* [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate) returns a [Promise],
|
|
142
|
+
* then [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate) would wait for
|
|
143
|
+
* the promise to resolve and return its value.
|
|
147
144
|
*
|
|
148
145
|
* If the function passed to the
|
|
149
|
-
* [page.evaluate(pageFunction[, arg
|
|
146
|
+
* [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate) returns a
|
|
150
147
|
* non-[Serializable] value, then
|
|
151
|
-
* [page.evaluate(pageFunction[, arg
|
|
148
|
+
* [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate) resolves to
|
|
152
149
|
* `undefined`. Playwright also supports transferring some additional values that are not serializable by `JSON`:
|
|
153
150
|
* `-0`, `NaN`, `Infinity`, `-Infinity`.
|
|
154
151
|
*
|
|
@@ -172,7 +169,7 @@ export interface Page {
|
|
|
172
169
|
* ```
|
|
173
170
|
*
|
|
174
171
|
* [ElementHandle](https://playwright.dev/docs/api/class-elementhandle) instances can be passed as an argument to the
|
|
175
|
-
* [page.evaluate(pageFunction[, arg
|
|
172
|
+
* [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate):
|
|
176
173
|
*
|
|
177
174
|
* ```js
|
|
178
175
|
* const bodyHandle = await page.evaluateHandle('document.body');
|
|
@@ -185,9 +182,8 @@ export interface Page {
|
|
|
185
182
|
* @param pageFunction Function to be evaluated in the page context.
|
|
186
183
|
* @param arg Optional argument to pass to
|
|
187
184
|
* [`pageFunction`](https://playwright.dev/docs/api/class-page#page-evaluate-option-expression).
|
|
188
|
-
* @param options
|
|
189
185
|
*/
|
|
190
|
-
evaluate<R>(pageFunction: PageFunction<void, R>, arg?: any
|
|
186
|
+
evaluate<R>(pageFunction: PageFunction<void, R>, arg?: any): Promise<R>;
|
|
191
187
|
|
|
192
188
|
/**
|
|
193
189
|
* Returns the value of the
|
|
@@ -195,17 +191,16 @@ export interface Page {
|
|
|
195
191
|
* [JSHandle](https://playwright.dev/docs/api/class-jshandle).
|
|
196
192
|
*
|
|
197
193
|
* The only difference between
|
|
198
|
-
* [page.evaluate(pageFunction[, arg
|
|
199
|
-
* [page.evaluateHandle(pageFunction[, arg
|
|
200
|
-
*
|
|
201
|
-
* [
|
|
202
|
-
* returns [JSHandle](https://playwright.dev/docs/api/class-jshandle).
|
|
194
|
+
* [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate) and
|
|
195
|
+
* [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate-handle) is that
|
|
196
|
+
* [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate-handle) returns
|
|
197
|
+
* [JSHandle](https://playwright.dev/docs/api/class-jshandle).
|
|
203
198
|
*
|
|
204
199
|
* If the function passed to the
|
|
205
|
-
* [page.evaluateHandle(pageFunction[, arg
|
|
206
|
-
*
|
|
207
|
-
* [page.evaluateHandle(pageFunction[, arg
|
|
208
|
-
*
|
|
200
|
+
* [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate-handle) returns
|
|
201
|
+
* a [Promise], then
|
|
202
|
+
* [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate-handle) would
|
|
203
|
+
* wait for the promise to resolve and return its value.
|
|
209
204
|
*
|
|
210
205
|
* **Usage**
|
|
211
206
|
*
|
|
@@ -221,7 +216,7 @@ export interface Page {
|
|
|
221
216
|
* ```
|
|
222
217
|
*
|
|
223
218
|
* [JSHandle](https://playwright.dev/docs/api/class-jshandle) instances can be passed as an argument to the
|
|
224
|
-
* [page.evaluateHandle(pageFunction[, arg
|
|
219
|
+
* [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate-handle):
|
|
225
220
|
*
|
|
226
221
|
* ```js
|
|
227
222
|
* const aHandle = await page.evaluateHandle(() => document.body);
|
|
@@ -233,26 +228,24 @@ export interface Page {
|
|
|
233
228
|
* @param pageFunction Function to be evaluated in the page context.
|
|
234
229
|
* @param arg Optional argument to pass to
|
|
235
230
|
* [`pageFunction`](https://playwright.dev/docs/api/class-page#page-evaluate-handle-option-expression).
|
|
236
|
-
* @param options
|
|
237
231
|
*/
|
|
238
|
-
evaluateHandle<R, Arg>(pageFunction: PageFunction<Arg, R>, arg: Arg
|
|
232
|
+
evaluateHandle<R, Arg>(pageFunction: PageFunction<Arg, R>, arg: Arg): Promise<SmartHandle<R>>;
|
|
239
233
|
/**
|
|
240
234
|
* Returns the value of the
|
|
241
235
|
* [`pageFunction`](https://playwright.dev/docs/api/class-page#page-evaluate-handle-option-expression) invocation as a
|
|
242
236
|
* [JSHandle](https://playwright.dev/docs/api/class-jshandle).
|
|
243
237
|
*
|
|
244
238
|
* The only difference between
|
|
245
|
-
* [page.evaluate(pageFunction[, arg
|
|
246
|
-
* [page.evaluateHandle(pageFunction[, arg
|
|
247
|
-
*
|
|
248
|
-
* [
|
|
249
|
-
* returns [JSHandle](https://playwright.dev/docs/api/class-jshandle).
|
|
239
|
+
* [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate) and
|
|
240
|
+
* [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate-handle) is that
|
|
241
|
+
* [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate-handle) returns
|
|
242
|
+
* [JSHandle](https://playwright.dev/docs/api/class-jshandle).
|
|
250
243
|
*
|
|
251
244
|
* If the function passed to the
|
|
252
|
-
* [page.evaluateHandle(pageFunction[, arg
|
|
253
|
-
*
|
|
254
|
-
* [page.evaluateHandle(pageFunction[, arg
|
|
255
|
-
*
|
|
245
|
+
* [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate-handle) returns
|
|
246
|
+
* a [Promise], then
|
|
247
|
+
* [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate-handle) would
|
|
248
|
+
* wait for the promise to resolve and return its value.
|
|
256
249
|
*
|
|
257
250
|
* **Usage**
|
|
258
251
|
*
|
|
@@ -268,7 +261,7 @@ export interface Page {
|
|
|
268
261
|
* ```
|
|
269
262
|
*
|
|
270
263
|
* [JSHandle](https://playwright.dev/docs/api/class-jshandle) instances can be passed as an argument to the
|
|
271
|
-
* [page.evaluateHandle(pageFunction[, arg
|
|
264
|
+
* [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate-handle):
|
|
272
265
|
*
|
|
273
266
|
* ```js
|
|
274
267
|
* const aHandle = await page.evaluateHandle(() => document.body);
|
|
@@ -280,9 +273,8 @@ export interface Page {
|
|
|
280
273
|
* @param pageFunction Function to be evaluated in the page context.
|
|
281
274
|
* @param arg Optional argument to pass to
|
|
282
275
|
* [`pageFunction`](https://playwright.dev/docs/api/class-page#page-evaluate-handle-option-expression).
|
|
283
|
-
* @param options
|
|
284
276
|
*/
|
|
285
|
-
evaluateHandle<R>(pageFunction: PageFunction<void, R>, arg?: any
|
|
277
|
+
evaluateHandle<R>(pageFunction: PageFunction<void, R>, arg?: any): Promise<SmartHandle<R>>;
|
|
286
278
|
|
|
287
279
|
/**
|
|
288
280
|
* Adds a script which would be evaluated in one of the following scenarios:
|
|
@@ -314,17 +306,16 @@ export interface Page {
|
|
|
314
306
|
* ```
|
|
315
307
|
*
|
|
316
308
|
* **NOTE** The order of evaluation of multiple scripts installed via
|
|
317
|
-
* [browserContext.addInitScript(script[, arg
|
|
318
|
-
* and [page.addInitScript(script[, arg
|
|
319
|
-
*
|
|
309
|
+
* [browserContext.addInitScript(script[, arg])](https://playwright.dev/docs/api/class-browsercontext#browser-context-add-init-script)
|
|
310
|
+
* and [page.addInitScript(script[, arg])](https://playwright.dev/docs/api/class-page#page-add-init-script) is not
|
|
311
|
+
* defined.
|
|
320
312
|
*
|
|
321
313
|
* @param script Script to be evaluated in the page.
|
|
322
314
|
* @param arg Optional argument to pass to
|
|
323
315
|
* [`script`](https://playwright.dev/docs/api/class-page#page-add-init-script-option-script) (only supported when
|
|
324
316
|
* passing a function).
|
|
325
|
-
* @param options
|
|
326
317
|
*/
|
|
327
|
-
addInitScript<Arg>(script: PageFunction<Arg, any> | { path?: string, content?: string }, arg?: Arg
|
|
318
|
+
addInitScript<Arg>(script: PageFunction<Arg, any> | { path?: string, content?: string }, arg?: Arg): Promise<Disposable>;
|
|
328
319
|
|
|
329
320
|
/**
|
|
330
321
|
* **NOTE** Use locator-based [page.locator(selector[, options])](https://playwright.dev/docs/api/class-page#page-locator)
|
|
@@ -2079,17 +2070,6 @@ export interface Page {
|
|
|
2079
2070
|
*/
|
|
2080
2071
|
mode?: "ai"|"default";
|
|
2081
2072
|
|
|
2082
|
-
/**
|
|
2083
|
-
* Allows to cancel the operation using an
|
|
2084
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
2085
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
2086
|
-
* which can be changed using
|
|
2087
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
2088
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
2089
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
2090
|
-
*/
|
|
2091
|
-
signal?: AbortSignal;
|
|
2092
|
-
|
|
2093
2073
|
/**
|
|
2094
2074
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
2095
2075
|
* option in the config, or by using the
|
|
@@ -2158,25 +2138,6 @@ export interface Page {
|
|
|
2158
2138
|
y: number;
|
|
2159
2139
|
};
|
|
2160
2140
|
|
|
2161
|
-
/**
|
|
2162
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
2163
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
2164
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
2165
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
2166
|
-
*/
|
|
2167
|
-
scroll?: "auto"|"none";
|
|
2168
|
-
|
|
2169
|
-
/**
|
|
2170
|
-
* Allows to cancel the operation using an
|
|
2171
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
2172
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
2173
|
-
* which can be changed using
|
|
2174
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
2175
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
2176
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
2177
|
-
*/
|
|
2178
|
-
signal?: AbortSignal;
|
|
2179
|
-
|
|
2180
2141
|
/**
|
|
2181
2142
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
2182
2143
|
* element, the call throws an exception.
|
|
@@ -2284,25 +2245,6 @@ export interface Page {
|
|
|
2284
2245
|
y: number;
|
|
2285
2246
|
};
|
|
2286
2247
|
|
|
2287
|
-
/**
|
|
2288
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
2289
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
2290
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
2291
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
2292
|
-
*/
|
|
2293
|
-
scroll?: "auto"|"none";
|
|
2294
|
-
|
|
2295
|
-
/**
|
|
2296
|
-
* Allows to cancel the operation using an
|
|
2297
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
2298
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
2299
|
-
* which can be changed using
|
|
2300
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
2301
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
2302
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
2303
|
-
*/
|
|
2304
|
-
signal?: AbortSignal;
|
|
2305
|
-
|
|
2306
2248
|
/**
|
|
2307
2249
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
2308
2250
|
* element, the call throws an exception.
|
|
@@ -2442,25 +2384,6 @@ export interface Page {
|
|
|
2442
2384
|
y: number;
|
|
2443
2385
|
};
|
|
2444
2386
|
|
|
2445
|
-
/**
|
|
2446
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
2447
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
2448
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
2449
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
2450
|
-
*/
|
|
2451
|
-
scroll?: "auto"|"none";
|
|
2452
|
-
|
|
2453
|
-
/**
|
|
2454
|
-
* Allows to cancel the operation using an
|
|
2455
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
2456
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
2457
|
-
* which can be changed using
|
|
2458
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
2459
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
2460
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
2461
|
-
*/
|
|
2462
|
-
signal?: AbortSignal;
|
|
2463
|
-
|
|
2464
2387
|
/**
|
|
2465
2388
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
2466
2389
|
* element, the call throws an exception.
|
|
@@ -2532,17 +2455,6 @@ export interface Page {
|
|
|
2532
2455
|
* @param options
|
|
2533
2456
|
*/
|
|
2534
2457
|
dispatchEvent(selector: string, type: string, eventInit?: EvaluationArgument, options?: {
|
|
2535
|
-
/**
|
|
2536
|
-
* Allows to cancel the operation using an
|
|
2537
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
2538
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
2539
|
-
* which can be changed using
|
|
2540
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
2541
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
2542
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
2543
|
-
*/
|
|
2544
|
-
signal?: AbortSignal;
|
|
2545
|
-
|
|
2546
2458
|
/**
|
|
2547
2459
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
2548
2460
|
* element, the call throws an exception.
|
|
@@ -2591,25 +2503,6 @@ export interface Page {
|
|
|
2591
2503
|
*/
|
|
2592
2504
|
noWaitAfter?: boolean;
|
|
2593
2505
|
|
|
2594
|
-
/**
|
|
2595
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
2596
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
2597
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
2598
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
2599
|
-
*/
|
|
2600
|
-
scroll?: "auto"|"none";
|
|
2601
|
-
|
|
2602
|
-
/**
|
|
2603
|
-
* Allows to cancel the operation using an
|
|
2604
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
2605
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
2606
|
-
* which can be changed using
|
|
2607
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
2608
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
2609
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
2610
|
-
*/
|
|
2611
|
-
signal?: AbortSignal;
|
|
2612
|
-
|
|
2613
2506
|
/**
|
|
2614
2507
|
* Clicks on the source element at this point relative to the top-left corner of the element's padding box. If not
|
|
2615
2508
|
* specified, some visible point of the element is used.
|
|
@@ -2809,17 +2702,6 @@ export interface Page {
|
|
|
2809
2702
|
*/
|
|
2810
2703
|
noWaitAfter?: boolean;
|
|
2811
2704
|
|
|
2812
|
-
/**
|
|
2813
|
-
* Allows to cancel the operation using an
|
|
2814
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
2815
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
2816
|
-
* which can be changed using
|
|
2817
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
2818
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
2819
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
2820
|
-
*/
|
|
2821
|
-
signal?: AbortSignal;
|
|
2822
|
-
|
|
2823
2705
|
/**
|
|
2824
2706
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
2825
2707
|
* element, the call throws an exception.
|
|
@@ -2848,17 +2730,6 @@ export interface Page {
|
|
|
2848
2730
|
* @param options
|
|
2849
2731
|
*/
|
|
2850
2732
|
focus(selector: string, options?: {
|
|
2851
|
-
/**
|
|
2852
|
-
* Allows to cancel the operation using an
|
|
2853
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
2854
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
2855
|
-
* which can be changed using
|
|
2856
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
2857
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
2858
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
2859
|
-
*/
|
|
2860
|
-
signal?: AbortSignal;
|
|
2861
|
-
|
|
2862
2733
|
/**
|
|
2863
2734
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
2864
2735
|
* element, the call throws an exception.
|
|
@@ -2936,17 +2807,6 @@ export interface Page {
|
|
|
2936
2807
|
* @param options
|
|
2937
2808
|
*/
|
|
2938
2809
|
getAttribute(selector: string, name: string, options?: {
|
|
2939
|
-
/**
|
|
2940
|
-
* Allows to cancel the operation using an
|
|
2941
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
2942
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
2943
|
-
* which can be changed using
|
|
2944
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
2945
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
2946
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
2947
|
-
*/
|
|
2948
|
-
signal?: AbortSignal;
|
|
2949
|
-
|
|
2950
2810
|
/**
|
|
2951
2811
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
2952
2812
|
* element, the call throws an exception.
|
|
@@ -3292,27 +3152,9 @@ export interface Page {
|
|
|
3292
3152
|
* the last redirect. If cannot go back, returns `null`.
|
|
3293
3153
|
*
|
|
3294
3154
|
* Navigate to the previous page in history.
|
|
3295
|
-
*
|
|
3296
|
-
* **NOTE** **Testing Back/Forward Cache (BFCache) is not supported.** By default, Playwright disables the
|
|
3297
|
-
* Back/Forward Cache across all browsers. Even if explicitly enabled, Playwright's internal state relies on
|
|
3298
|
-
* network-level navigation events. Because BFCache restores unfreeze the DOM without firing these events, using
|
|
3299
|
-
* `page.goBack()` or `page.goForward()` to trigger a BFCache restore will result in timeouts and a desynchronized
|
|
3300
|
-
* `Page` state.
|
|
3301
|
-
*
|
|
3302
3155
|
* @param options
|
|
3303
3156
|
*/
|
|
3304
3157
|
goBack(options?: {
|
|
3305
|
-
/**
|
|
3306
|
-
* Allows to cancel the operation using an
|
|
3307
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
3308
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
3309
|
-
* which can be changed using
|
|
3310
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
3311
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
3312
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
3313
|
-
*/
|
|
3314
|
-
signal?: AbortSignal;
|
|
3315
|
-
|
|
3316
3158
|
/**
|
|
3317
3159
|
* Maximum operation time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via
|
|
3318
3160
|
* `navigationTimeout` option in the config, or by using the
|
|
@@ -3340,27 +3182,9 @@ export interface Page {
|
|
|
3340
3182
|
* the last redirect. If cannot go forward, returns `null`.
|
|
3341
3183
|
*
|
|
3342
3184
|
* Navigate to the next page in history.
|
|
3343
|
-
*
|
|
3344
|
-
* **NOTE** **Testing Back/Forward Cache (BFCache) is not supported.** By default, Playwright disables the
|
|
3345
|
-
* Back/Forward Cache across all browsers. Even if explicitly enabled, Playwright's internal state relies on
|
|
3346
|
-
* network-level navigation events. Because BFCache restores unfreeze the DOM without firing these events, using
|
|
3347
|
-
* `page.goBack()` or `page.goForward()` to trigger a BFCache restore will result in timeouts and a desynchronized
|
|
3348
|
-
* `Page` state.
|
|
3349
|
-
*
|
|
3350
3185
|
* @param options
|
|
3351
3186
|
*/
|
|
3352
3187
|
goForward(options?: {
|
|
3353
|
-
/**
|
|
3354
|
-
* Allows to cancel the operation using an
|
|
3355
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
3356
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
3357
|
-
* which can be changed using
|
|
3358
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
3359
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
3360
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
3361
|
-
*/
|
|
3362
|
-
signal?: AbortSignal;
|
|
3363
|
-
|
|
3364
3188
|
/**
|
|
3365
3189
|
* Maximum operation time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via
|
|
3366
3190
|
* `navigationTimeout` option in the config, or by using the
|
|
@@ -3418,17 +3242,6 @@ export interface Page {
|
|
|
3418
3242
|
*/
|
|
3419
3243
|
referer?: string;
|
|
3420
3244
|
|
|
3421
|
-
/**
|
|
3422
|
-
* Allows to cancel the operation using an
|
|
3423
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
3424
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
3425
|
-
* which can be changed using
|
|
3426
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
3427
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
3428
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
3429
|
-
*/
|
|
3430
|
-
signal?: AbortSignal;
|
|
3431
|
-
|
|
3432
3245
|
/**
|
|
3433
3246
|
* Maximum operation time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via
|
|
3434
3247
|
* `navigationTimeout` option in the config, or by using the
|
|
@@ -3510,25 +3323,6 @@ export interface Page {
|
|
|
3510
3323
|
y: number;
|
|
3511
3324
|
};
|
|
3512
3325
|
|
|
3513
|
-
/**
|
|
3514
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
3515
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
3516
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
3517
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
3518
|
-
*/
|
|
3519
|
-
scroll?: "auto"|"none";
|
|
3520
|
-
|
|
3521
|
-
/**
|
|
3522
|
-
* Allows to cancel the operation using an
|
|
3523
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
3524
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
3525
|
-
* which can be changed using
|
|
3526
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
3527
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
3528
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
3529
|
-
*/
|
|
3530
|
-
signal?: AbortSignal;
|
|
3531
|
-
|
|
3532
3326
|
/**
|
|
3533
3327
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
3534
3328
|
* element, the call throws an exception.
|
|
@@ -3562,17 +3356,6 @@ export interface Page {
|
|
|
3562
3356
|
* @param options
|
|
3563
3357
|
*/
|
|
3564
3358
|
innerHTML(selector: string, options?: {
|
|
3565
|
-
/**
|
|
3566
|
-
* Allows to cancel the operation using an
|
|
3567
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
3568
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
3569
|
-
* which can be changed using
|
|
3570
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
3571
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
3572
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
3573
|
-
*/
|
|
3574
|
-
signal?: AbortSignal;
|
|
3575
|
-
|
|
3576
3359
|
/**
|
|
3577
3360
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
3578
3361
|
* element, the call throws an exception.
|
|
@@ -3598,17 +3381,6 @@ export interface Page {
|
|
|
3598
3381
|
* @param options
|
|
3599
3382
|
*/
|
|
3600
3383
|
innerText(selector: string, options?: {
|
|
3601
|
-
/**
|
|
3602
|
-
* Allows to cancel the operation using an
|
|
3603
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
3604
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
3605
|
-
* which can be changed using
|
|
3606
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
3607
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
3608
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
3609
|
-
*/
|
|
3610
|
-
signal?: AbortSignal;
|
|
3611
|
-
|
|
3612
3384
|
/**
|
|
3613
3385
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
3614
3386
|
* element, the call throws an exception.
|
|
@@ -3639,17 +3411,6 @@ export interface Page {
|
|
|
3639
3411
|
* @param options
|
|
3640
3412
|
*/
|
|
3641
3413
|
inputValue(selector: string, options?: {
|
|
3642
|
-
/**
|
|
3643
|
-
* Allows to cancel the operation using an
|
|
3644
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
3645
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
3646
|
-
* which can be changed using
|
|
3647
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
3648
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
3649
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
3650
|
-
*/
|
|
3651
|
-
signal?: AbortSignal;
|
|
3652
|
-
|
|
3653
3414
|
/**
|
|
3654
3415
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
3655
3416
|
* element, the call throws an exception.
|
|
@@ -3675,17 +3436,6 @@ export interface Page {
|
|
|
3675
3436
|
* @param options
|
|
3676
3437
|
*/
|
|
3677
3438
|
isChecked(selector: string, options?: {
|
|
3678
|
-
/**
|
|
3679
|
-
* Allows to cancel the operation using an
|
|
3680
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
3681
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
3682
|
-
* which can be changed using
|
|
3683
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
3684
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
3685
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
3686
|
-
*/
|
|
3687
|
-
signal?: AbortSignal;
|
|
3688
|
-
|
|
3689
3439
|
/**
|
|
3690
3440
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
3691
3441
|
* element, the call throws an exception.
|
|
@@ -3717,17 +3467,6 @@ export interface Page {
|
|
|
3717
3467
|
* @param options
|
|
3718
3468
|
*/
|
|
3719
3469
|
isDisabled(selector: string, options?: {
|
|
3720
|
-
/**
|
|
3721
|
-
* Allows to cancel the operation using an
|
|
3722
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
3723
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
3724
|
-
* which can be changed using
|
|
3725
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
3726
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
3727
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
3728
|
-
*/
|
|
3729
|
-
signal?: AbortSignal;
|
|
3730
|
-
|
|
3731
3470
|
/**
|
|
3732
3471
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
3733
3472
|
* element, the call throws an exception.
|
|
@@ -3754,17 +3493,6 @@ export interface Page {
|
|
|
3754
3493
|
* @param options
|
|
3755
3494
|
*/
|
|
3756
3495
|
isEditable(selector: string, options?: {
|
|
3757
|
-
/**
|
|
3758
|
-
* Allows to cancel the operation using an
|
|
3759
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
3760
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
3761
|
-
* which can be changed using
|
|
3762
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
3763
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
3764
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
3765
|
-
*/
|
|
3766
|
-
signal?: AbortSignal;
|
|
3767
|
-
|
|
3768
3496
|
/**
|
|
3769
3497
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
3770
3498
|
* element, the call throws an exception.
|
|
@@ -3790,17 +3518,6 @@ export interface Page {
|
|
|
3790
3518
|
* @param options
|
|
3791
3519
|
*/
|
|
3792
3520
|
isEnabled(selector: string, options?: {
|
|
3793
|
-
/**
|
|
3794
|
-
* Allows to cancel the operation using an
|
|
3795
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
3796
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
3797
|
-
* which can be changed using
|
|
3798
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
3799
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
3800
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
3801
|
-
*/
|
|
3802
|
-
signal?: AbortSignal;
|
|
3803
|
-
|
|
3804
3521
|
/**
|
|
3805
3522
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
3806
3523
|
* element, the call throws an exception.
|
|
@@ -4195,17 +3912,6 @@ export interface Page {
|
|
|
4195
3912
|
*/
|
|
4196
3913
|
noWaitAfter?: boolean;
|
|
4197
3914
|
|
|
4198
|
-
/**
|
|
4199
|
-
* Allows to cancel the operation using an
|
|
4200
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
4201
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
4202
|
-
* which can be changed using
|
|
4203
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
4204
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
4205
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
4206
|
-
*/
|
|
4207
|
-
signal?: AbortSignal;
|
|
4208
|
-
|
|
4209
3915
|
/**
|
|
4210
3916
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
4211
3917
|
* element, the call throws an exception.
|
|
@@ -4228,17 +3934,6 @@ export interface Page {
|
|
|
4228
3934
|
* @param options
|
|
4229
3935
|
*/
|
|
4230
3936
|
reload(options?: {
|
|
4231
|
-
/**
|
|
4232
|
-
* Allows to cancel the operation using an
|
|
4233
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
4234
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
4235
|
-
* which can be changed using
|
|
4236
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
4237
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
4238
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
4239
|
-
*/
|
|
4240
|
-
signal?: AbortSignal;
|
|
4241
|
-
|
|
4242
3937
|
/**
|
|
4243
3938
|
* Maximum operation time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via
|
|
4244
3939
|
* `navigationTimeout` option in the config, or by using the
|
|
@@ -4545,17 +4240,6 @@ export interface Page {
|
|
|
4545
4240
|
*/
|
|
4546
4241
|
noWaitAfter?: boolean;
|
|
4547
4242
|
|
|
4548
|
-
/**
|
|
4549
|
-
* Allows to cancel the operation using an
|
|
4550
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
4551
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
4552
|
-
* which can be changed using
|
|
4553
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
4554
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
4555
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
4556
|
-
*/
|
|
4557
|
-
signal?: AbortSignal;
|
|
4558
|
-
|
|
4559
4243
|
/**
|
|
4560
4244
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
4561
4245
|
* element, the call throws an exception.
|
|
@@ -4622,25 +4306,6 @@ export interface Page {
|
|
|
4622
4306
|
y: number;
|
|
4623
4307
|
};
|
|
4624
4308
|
|
|
4625
|
-
/**
|
|
4626
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
4627
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
4628
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
4629
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
4630
|
-
*/
|
|
4631
|
-
scroll?: "auto"|"none";
|
|
4632
|
-
|
|
4633
|
-
/**
|
|
4634
|
-
* Allows to cancel the operation using an
|
|
4635
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
4636
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
4637
|
-
* which can be changed using
|
|
4638
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
4639
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
4640
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
4641
|
-
*/
|
|
4642
|
-
signal?: AbortSignal;
|
|
4643
|
-
|
|
4644
4309
|
/**
|
|
4645
4310
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
4646
4311
|
* element, the call throws an exception.
|
|
@@ -4669,17 +4334,6 @@ export interface Page {
|
|
|
4669
4334
|
* @param options
|
|
4670
4335
|
*/
|
|
4671
4336
|
setContent(html: string, options?: {
|
|
4672
|
-
/**
|
|
4673
|
-
* Allows to cancel the operation using an
|
|
4674
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
4675
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
4676
|
-
* which can be changed using
|
|
4677
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
4678
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
4679
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
4680
|
-
*/
|
|
4681
|
-
signal?: AbortSignal;
|
|
4682
|
-
|
|
4683
4337
|
/**
|
|
4684
4338
|
* Maximum operation time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via
|
|
4685
4339
|
* `navigationTimeout` option in the config, or by using the
|
|
@@ -4803,17 +4457,6 @@ export interface Page {
|
|
|
4803
4457
|
*/
|
|
4804
4458
|
noWaitAfter?: boolean;
|
|
4805
4459
|
|
|
4806
|
-
/**
|
|
4807
|
-
* Allows to cancel the operation using an
|
|
4808
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
4809
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
4810
|
-
* which can be changed using
|
|
4811
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
4812
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
4813
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
4814
|
-
*/
|
|
4815
|
-
signal?: AbortSignal;
|
|
4816
|
-
|
|
4817
4460
|
/**
|
|
4818
4461
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
4819
4462
|
* element, the call throws an exception.
|
|
@@ -4924,25 +4567,6 @@ export interface Page {
|
|
|
4924
4567
|
y: number;
|
|
4925
4568
|
};
|
|
4926
4569
|
|
|
4927
|
-
/**
|
|
4928
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
4929
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
4930
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
4931
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
4932
|
-
*/
|
|
4933
|
-
scroll?: "auto"|"none";
|
|
4934
|
-
|
|
4935
|
-
/**
|
|
4936
|
-
* Allows to cancel the operation using an
|
|
4937
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
4938
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
4939
|
-
* which can be changed using
|
|
4940
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
4941
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
4942
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
4943
|
-
*/
|
|
4944
|
-
signal?: AbortSignal;
|
|
4945
|
-
|
|
4946
4570
|
/**
|
|
4947
4571
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
4948
4572
|
* element, the call throws an exception.
|
|
@@ -4977,17 +4601,6 @@ export interface Page {
|
|
|
4977
4601
|
* @param options
|
|
4978
4602
|
*/
|
|
4979
4603
|
textContent(selector: string, options?: {
|
|
4980
|
-
/**
|
|
4981
|
-
* Allows to cancel the operation using an
|
|
4982
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
4983
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
4984
|
-
* which can be changed using
|
|
4985
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
4986
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
4987
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
4988
|
-
*/
|
|
4989
|
-
signal?: AbortSignal;
|
|
4990
|
-
|
|
4991
4604
|
/**
|
|
4992
4605
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
4993
4606
|
* element, the call throws an exception.
|
|
@@ -5038,17 +4651,6 @@ export interface Page {
|
|
|
5038
4651
|
*/
|
|
5039
4652
|
noWaitAfter?: boolean;
|
|
5040
4653
|
|
|
5041
|
-
/**
|
|
5042
|
-
* Allows to cancel the operation using an
|
|
5043
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
5044
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
5045
|
-
* which can be changed using
|
|
5046
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
5047
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
5048
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
5049
|
-
*/
|
|
5050
|
-
signal?: AbortSignal;
|
|
5051
|
-
|
|
5052
4654
|
/**
|
|
5053
4655
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
5054
4656
|
* element, the call throws an exception.
|
|
@@ -5113,25 +4715,6 @@ export interface Page {
|
|
|
5113
4715
|
y: number;
|
|
5114
4716
|
};
|
|
5115
4717
|
|
|
5116
|
-
/**
|
|
5117
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
5118
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
5119
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
5120
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
5121
|
-
*/
|
|
5122
|
-
scroll?: "auto"|"none";
|
|
5123
|
-
|
|
5124
|
-
/**
|
|
5125
|
-
* Allows to cancel the operation using an
|
|
5126
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
5127
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
5128
|
-
* which can be changed using
|
|
5129
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
5130
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
5131
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
5132
|
-
*/
|
|
5133
|
-
signal?: AbortSignal;
|
|
5134
|
-
|
|
5135
4718
|
/**
|
|
5136
4719
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
5137
4720
|
* element, the call throws an exception.
|
|
@@ -5204,7 +4787,7 @@ export interface Page {
|
|
|
5204
4787
|
/**
|
|
5205
4788
|
* Emitted when the page closes.
|
|
5206
4789
|
*/
|
|
5207
|
-
waitForEvent(event: 'close', optionsOrPredicate?: { predicate?: (page: Page) => boolean | Promise<boolean>, timeout?: number
|
|
4790
|
+
waitForEvent(event: 'close', optionsOrPredicate?: { predicate?: (page: Page) => boolean | Promise<boolean>, timeout?: number } | ((page: Page) => boolean | Promise<boolean>)): Promise<Page>;
|
|
5208
4791
|
|
|
5209
4792
|
/**
|
|
5210
4793
|
* Emitted when JavaScript within the page calls one of console API methods, e.g. `console.log` or `console.dir`.
|
|
@@ -5225,7 +4808,7 @@ export interface Page {
|
|
|
5225
4808
|
* ```
|
|
5226
4809
|
*
|
|
5227
4810
|
*/
|
|
5228
|
-
waitForEvent(event: 'console', optionsOrPredicate?: { predicate?: (consoleMessage: ConsoleMessage) => boolean | Promise<boolean>, timeout?: number
|
|
4811
|
+
waitForEvent(event: 'console', optionsOrPredicate?: { predicate?: (consoleMessage: ConsoleMessage) => boolean | Promise<boolean>, timeout?: number } | ((consoleMessage: ConsoleMessage) => boolean | Promise<boolean>)): Promise<ConsoleMessage>;
|
|
5229
4812
|
|
|
5230
4813
|
/**
|
|
5231
4814
|
* Emitted when the page crashes. Browser pages might crash if they try to allocate too much memory. When the page
|
|
@@ -5245,7 +4828,7 @@ export interface Page {
|
|
|
5245
4828
|
* ```
|
|
5246
4829
|
*
|
|
5247
4830
|
*/
|
|
5248
|
-
waitForEvent(event: 'crash', optionsOrPredicate?: { predicate?: (page: Page) => boolean | Promise<boolean>, timeout?: number
|
|
4831
|
+
waitForEvent(event: 'crash', optionsOrPredicate?: { predicate?: (page: Page) => boolean | Promise<boolean>, timeout?: number } | ((page: Page) => boolean | Promise<boolean>)): Promise<Page>;
|
|
5249
4832
|
|
|
5250
4833
|
/**
|
|
5251
4834
|
* Emitted when a JavaScript dialog appears, such as `alert`, `prompt`, `confirm` or `beforeunload`. Listener **must**
|
|
@@ -5265,19 +4848,19 @@ export interface Page {
|
|
|
5265
4848
|
* listeners are present, all dialogs are automatically dismissed.
|
|
5266
4849
|
*
|
|
5267
4850
|
*/
|
|
5268
|
-
waitForEvent(event: 'dialog', optionsOrPredicate?: { predicate?: (dialog: Dialog) => boolean | Promise<boolean>, timeout?: number
|
|
4851
|
+
waitForEvent(event: 'dialog', optionsOrPredicate?: { predicate?: (dialog: Dialog) => boolean | Promise<boolean>, timeout?: number } | ((dialog: Dialog) => boolean | Promise<boolean>)): Promise<Dialog>;
|
|
5269
4852
|
|
|
5270
4853
|
/**
|
|
5271
4854
|
* Emitted when the JavaScript
|
|
5272
4855
|
* [`DOMContentLoaded`](https://developer.mozilla.org/en-US/docs/Web/Events/DOMContentLoaded) event is dispatched.
|
|
5273
4856
|
*/
|
|
5274
|
-
waitForEvent(event: 'domcontentloaded', optionsOrPredicate?: { predicate?: (page: Page) => boolean | Promise<boolean>, timeout?: number
|
|
4857
|
+
waitForEvent(event: 'domcontentloaded', optionsOrPredicate?: { predicate?: (page: Page) => boolean | Promise<boolean>, timeout?: number } | ((page: Page) => boolean | Promise<boolean>)): Promise<Page>;
|
|
5275
4858
|
|
|
5276
4859
|
/**
|
|
5277
4860
|
* Emitted when attachment download started. User can access basic file operations on downloaded content via the
|
|
5278
4861
|
* passed [Download](https://playwright.dev/docs/api/class-download) instance.
|
|
5279
4862
|
*/
|
|
5280
|
-
waitForEvent(event: 'download', optionsOrPredicate?: { predicate?: (download: Download) => boolean | Promise<boolean>, timeout?: number
|
|
4863
|
+
waitForEvent(event: 'download', optionsOrPredicate?: { predicate?: (download: Download) => boolean | Promise<boolean>, timeout?: number } | ((download: Download) => boolean | Promise<boolean>)): Promise<Download>;
|
|
5281
4864
|
|
|
5282
4865
|
/**
|
|
5283
4866
|
* Emitted when a file chooser is supposed to appear, such as after clicking the `<input type=file>`. Playwright can
|
|
@@ -5292,27 +4875,27 @@ export interface Page {
|
|
|
5292
4875
|
* ```
|
|
5293
4876
|
*
|
|
5294
4877
|
*/
|
|
5295
|
-
waitForEvent(event: 'filechooser', optionsOrPredicate?: { predicate?: (fileChooser: FileChooser) => boolean | Promise<boolean>, timeout?: number
|
|
4878
|
+
waitForEvent(event: 'filechooser', optionsOrPredicate?: { predicate?: (fileChooser: FileChooser) => boolean | Promise<boolean>, timeout?: number } | ((fileChooser: FileChooser) => boolean | Promise<boolean>)): Promise<FileChooser>;
|
|
5296
4879
|
|
|
5297
4880
|
/**
|
|
5298
4881
|
* Emitted when a frame is attached.
|
|
5299
4882
|
*/
|
|
5300
|
-
waitForEvent(event: 'frameattached', optionsOrPredicate?: { predicate?: (frame: Frame) => boolean | Promise<boolean>, timeout?: number
|
|
4883
|
+
waitForEvent(event: 'frameattached', optionsOrPredicate?: { predicate?: (frame: Frame) => boolean | Promise<boolean>, timeout?: number } | ((frame: Frame) => boolean | Promise<boolean>)): Promise<Frame>;
|
|
5301
4884
|
|
|
5302
4885
|
/**
|
|
5303
4886
|
* Emitted when a frame is detached.
|
|
5304
4887
|
*/
|
|
5305
|
-
waitForEvent(event: 'framedetached', optionsOrPredicate?: { predicate?: (frame: Frame) => boolean | Promise<boolean>, timeout?: number
|
|
4888
|
+
waitForEvent(event: 'framedetached', optionsOrPredicate?: { predicate?: (frame: Frame) => boolean | Promise<boolean>, timeout?: number } | ((frame: Frame) => boolean | Promise<boolean>)): Promise<Frame>;
|
|
5306
4889
|
|
|
5307
4890
|
/**
|
|
5308
4891
|
* Emitted when a frame is navigated to a new url.
|
|
5309
4892
|
*/
|
|
5310
|
-
waitForEvent(event: 'framenavigated', optionsOrPredicate?: { predicate?: (frame: Frame) => boolean | Promise<boolean>, timeout?: number
|
|
4893
|
+
waitForEvent(event: 'framenavigated', optionsOrPredicate?: { predicate?: (frame: Frame) => boolean | Promise<boolean>, timeout?: number } | ((frame: Frame) => boolean | Promise<boolean>)): Promise<Frame>;
|
|
5311
4894
|
|
|
5312
4895
|
/**
|
|
5313
4896
|
* Emitted when the JavaScript [`load`](https://developer.mozilla.org/en-US/docs/Web/Events/load) event is dispatched.
|
|
5314
4897
|
*/
|
|
5315
|
-
waitForEvent(event: 'load', optionsOrPredicate?: { predicate?: (page: Page) => boolean | Promise<boolean>, timeout?: number
|
|
4898
|
+
waitForEvent(event: 'load', optionsOrPredicate?: { predicate?: (page: Page) => boolean | Promise<boolean>, timeout?: number } | ((page: Page) => boolean | Promise<boolean>)): Promise<Page>;
|
|
5316
4899
|
|
|
5317
4900
|
/**
|
|
5318
4901
|
* Emitted when an uncaught exception happens within the page.
|
|
@@ -5328,7 +4911,7 @@ export interface Page {
|
|
|
5328
4911
|
* ```
|
|
5329
4912
|
*
|
|
5330
4913
|
*/
|
|
5331
|
-
waitForEvent(event: 'pageerror', optionsOrPredicate?: { predicate?: (error: Error) => boolean | Promise<boolean>, timeout?: number
|
|
4914
|
+
waitForEvent(event: 'pageerror', optionsOrPredicate?: { predicate?: (error: Error) => boolean | Promise<boolean>, timeout?: number } | ((error: Error) => boolean | Promise<boolean>)): Promise<Error>;
|
|
5332
4915
|
|
|
5333
4916
|
/**
|
|
5334
4917
|
* Emitted when the page opens a new tab or window. This event is emitted in addition to the
|
|
@@ -5357,14 +4940,14 @@ export interface Page {
|
|
|
5357
4940
|
* wait until the page gets to a particular state (you should not need it in most cases).
|
|
5358
4941
|
*
|
|
5359
4942
|
*/
|
|
5360
|
-
waitForEvent(event: 'popup', optionsOrPredicate?: { predicate?: (page: Page) => boolean | Promise<boolean>, timeout?: number
|
|
4943
|
+
waitForEvent(event: 'popup', optionsOrPredicate?: { predicate?: (page: Page) => boolean | Promise<boolean>, timeout?: number } | ((page: Page) => boolean | Promise<boolean>)): Promise<Page>;
|
|
5361
4944
|
|
|
5362
4945
|
/**
|
|
5363
4946
|
* Emitted when a page issues a request. The [request] object is read-only. In order to intercept and mutate requests,
|
|
5364
4947
|
* see [page.route(url, handler[, options])](https://playwright.dev/docs/api/class-page#page-route) or
|
|
5365
4948
|
* [browserContext.route(url, handler[, options])](https://playwright.dev/docs/api/class-browsercontext#browser-context-route).
|
|
5366
4949
|
*/
|
|
5367
|
-
waitForEvent(event: 'request', optionsOrPredicate?: { predicate?: (request: Request) => boolean | Promise<boolean>, timeout?: number
|
|
4950
|
+
waitForEvent(event: 'request', optionsOrPredicate?: { predicate?: (request: Request) => boolean | Promise<boolean>, timeout?: number } | ((request: Request) => boolean | Promise<boolean>)): Promise<Request>;
|
|
5368
4951
|
|
|
5369
4952
|
/**
|
|
5370
4953
|
* Emitted when a request fails, for example by timing out.
|
|
@@ -5383,30 +4966,30 @@ export interface Page {
|
|
|
5383
4966
|
* error net::ERR_FAILED.
|
|
5384
4967
|
*
|
|
5385
4968
|
*/
|
|
5386
|
-
waitForEvent(event: 'requestfailed', optionsOrPredicate?: { predicate?: (request: Request) => boolean | Promise<boolean>, timeout?: number
|
|
4969
|
+
waitForEvent(event: 'requestfailed', optionsOrPredicate?: { predicate?: (request: Request) => boolean | Promise<boolean>, timeout?: number } | ((request: Request) => boolean | Promise<boolean>)): Promise<Request>;
|
|
5387
4970
|
|
|
5388
4971
|
/**
|
|
5389
4972
|
* Emitted when a request finishes successfully after downloading the response body. For a successful response, the
|
|
5390
4973
|
* sequence of events is `request`, `response` and `requestfinished`.
|
|
5391
4974
|
*/
|
|
5392
|
-
waitForEvent(event: 'requestfinished', optionsOrPredicate?: { predicate?: (request: Request) => boolean | Promise<boolean>, timeout?: number
|
|
4975
|
+
waitForEvent(event: 'requestfinished', optionsOrPredicate?: { predicate?: (request: Request) => boolean | Promise<boolean>, timeout?: number } | ((request: Request) => boolean | Promise<boolean>)): Promise<Request>;
|
|
5393
4976
|
|
|
5394
4977
|
/**
|
|
5395
4978
|
* Emitted when [response] status and headers are received for a request. For a successful response, the sequence of
|
|
5396
4979
|
* events is `request`, `response` and `requestfinished`.
|
|
5397
4980
|
*/
|
|
5398
|
-
waitForEvent(event: 'response', optionsOrPredicate?: { predicate?: (response: Response) => boolean | Promise<boolean>, timeout?: number
|
|
4981
|
+
waitForEvent(event: 'response', optionsOrPredicate?: { predicate?: (response: Response) => boolean | Promise<boolean>, timeout?: number } | ((response: Response) => boolean | Promise<boolean>)): Promise<Response>;
|
|
5399
4982
|
|
|
5400
4983
|
/**
|
|
5401
4984
|
* Emitted when [WebSocket](https://playwright.dev/docs/api/class-websocket) request is sent.
|
|
5402
4985
|
*/
|
|
5403
|
-
waitForEvent(event: 'websocket', optionsOrPredicate?: { predicate?: (webSocket: WebSocket) => boolean | Promise<boolean>, timeout?: number
|
|
4986
|
+
waitForEvent(event: 'websocket', optionsOrPredicate?: { predicate?: (webSocket: WebSocket) => boolean | Promise<boolean>, timeout?: number } | ((webSocket: WebSocket) => boolean | Promise<boolean>)): Promise<WebSocket>;
|
|
5404
4987
|
|
|
5405
4988
|
/**
|
|
5406
4989
|
* Emitted when a dedicated [WebWorker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) is spawned
|
|
5407
4990
|
* by the page.
|
|
5408
4991
|
*/
|
|
5409
|
-
waitForEvent(event: 'worker', optionsOrPredicate?: { predicate?: (worker: Worker) => boolean | Promise<boolean>, timeout?: number
|
|
4992
|
+
waitForEvent(event: 'worker', optionsOrPredicate?: { predicate?: (worker: Worker) => boolean | Promise<boolean>, timeout?: number } | ((worker: Worker) => boolean | Promise<boolean>)): Promise<Worker>;
|
|
5410
4993
|
|
|
5411
4994
|
|
|
5412
4995
|
/**
|
|
@@ -5443,16 +5026,6 @@ export interface Page {
|
|
|
5443
5026
|
* @param options
|
|
5444
5027
|
*/
|
|
5445
5028
|
waitForLoadState(state?: "load"|"domcontentloaded"|"networkidle", options?: {
|
|
5446
|
-
/**
|
|
5447
|
-
* Allows to cancel the waiting using an
|
|
5448
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
5449
|
-
* waiting will be aborted and the operation will throw an error. Note that providing a signal does not disable the
|
|
5450
|
-
* default timeout, which can be changed using
|
|
5451
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout);
|
|
5452
|
-
* pass `timeout: 0` to disable the timeout entirely.
|
|
5453
|
-
*/
|
|
5454
|
-
signal?: AbortSignal;
|
|
5455
|
-
|
|
5456
5029
|
/**
|
|
5457
5030
|
* Maximum operation time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via
|
|
5458
5031
|
* `navigationTimeout` option in the config, or by using the
|
|
@@ -5490,16 +5063,6 @@ export interface Page {
|
|
|
5490
5063
|
* @param options
|
|
5491
5064
|
*/
|
|
5492
5065
|
waitForNavigation(options?: {
|
|
5493
|
-
/**
|
|
5494
|
-
* Allows to cancel the waiting using an
|
|
5495
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
5496
|
-
* waiting will be aborted and the operation will throw an error. Note that providing a signal does not disable the
|
|
5497
|
-
* default timeout, which can be changed using
|
|
5498
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout);
|
|
5499
|
-
* pass `timeout: 0` to disable the timeout entirely.
|
|
5500
|
-
*/
|
|
5501
|
-
signal?: AbortSignal;
|
|
5502
|
-
|
|
5503
5066
|
/**
|
|
5504
5067
|
* Maximum operation time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via
|
|
5505
5068
|
* `navigationTimeout` option in the config, or by using the
|
|
@@ -5553,16 +5116,6 @@ export interface Page {
|
|
|
5553
5116
|
* @param options
|
|
5554
5117
|
*/
|
|
5555
5118
|
waitForRequest(urlOrPredicate: string|RegExp|((request: Request) => boolean|Promise<boolean>), options?: {
|
|
5556
|
-
/**
|
|
5557
|
-
* Allows to cancel the waiting using an
|
|
5558
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
5559
|
-
* waiting will be aborted and the operation will throw an error. Note that providing a signal does not disable the
|
|
5560
|
-
* default timeout, which can be changed using
|
|
5561
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout);
|
|
5562
|
-
* pass `timeout: 0` to disable the timeout entirely.
|
|
5563
|
-
*/
|
|
5564
|
-
signal?: AbortSignal;
|
|
5565
|
-
|
|
5566
5119
|
/**
|
|
5567
5120
|
* Maximum wait time in milliseconds, defaults to 30 seconds, pass `0` to disable the timeout. The default value can
|
|
5568
5121
|
* be changed by using the
|
|
@@ -5599,16 +5152,6 @@ export interface Page {
|
|
|
5599
5152
|
* @param options
|
|
5600
5153
|
*/
|
|
5601
5154
|
waitForResponse(urlOrPredicate: string|RegExp|((response: Response) => boolean|Promise<boolean>), options?: {
|
|
5602
|
-
/**
|
|
5603
|
-
* Allows to cancel the waiting using an
|
|
5604
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
5605
|
-
* waiting will be aborted and the operation will throw an error. Note that providing a signal does not disable the
|
|
5606
|
-
* default timeout, which can be changed using
|
|
5607
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout);
|
|
5608
|
-
* pass `timeout: 0` to disable the timeout entirely.
|
|
5609
|
-
*/
|
|
5610
|
-
signal?: AbortSignal;
|
|
5611
|
-
|
|
5612
5155
|
/**
|
|
5613
5156
|
* Maximum wait time in milliseconds, defaults to 30 seconds, pass `0` to disable the timeout. The default value can
|
|
5614
5157
|
* be changed by using the
|
|
@@ -5655,16 +5198,6 @@ export interface Page {
|
|
|
5655
5198
|
* @param options
|
|
5656
5199
|
*/
|
|
5657
5200
|
waitForURL(url: string|RegExp|URLPattern|((url: URL) => boolean), options?: {
|
|
5658
|
-
/**
|
|
5659
|
-
* Allows to cancel the waiting using an
|
|
5660
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
5661
|
-
* waiting will be aborted and the operation will throw an error. Note that providing a signal does not disable the
|
|
5662
|
-
* default timeout, which can be changed using
|
|
5663
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout);
|
|
5664
|
-
* pass `timeout: 0` to disable the timeout entirely.
|
|
5665
|
-
*/
|
|
5666
|
-
signal?: AbortSignal;
|
|
5667
|
-
|
|
5668
5201
|
/**
|
|
5669
5202
|
* Maximum operation time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via
|
|
5670
5203
|
* `navigationTimeout` option in the config, or by using the
|
|
@@ -5809,15 +5342,14 @@ export interface Frame {
|
|
|
5809
5342
|
* [`pageFunction`](https://playwright.dev/docs/api/class-frame#frame-evaluate-option-expression).
|
|
5810
5343
|
*
|
|
5811
5344
|
* If the function passed to the
|
|
5812
|
-
* [frame.evaluate(pageFunction[, arg
|
|
5813
|
-
*
|
|
5814
|
-
*
|
|
5815
|
-
* wait for the promise to resolve and return its value.
|
|
5345
|
+
* [frame.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate) returns a
|
|
5346
|
+
* [Promise], then [frame.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate)
|
|
5347
|
+
* would wait for the promise to resolve and return its value.
|
|
5816
5348
|
*
|
|
5817
5349
|
* If the function passed to the
|
|
5818
|
-
* [frame.evaluate(pageFunction[, arg
|
|
5819
|
-
*
|
|
5820
|
-
* [frame.evaluate(pageFunction[, arg
|
|
5350
|
+
* [frame.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate) returns a
|
|
5351
|
+
* non-[Serializable] value, then
|
|
5352
|
+
* [frame.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate) returns
|
|
5821
5353
|
* `undefined`. Playwright also supports transferring some additional values that are not serializable by `JSON`:
|
|
5822
5354
|
* `-0`, `NaN`, `Infinity`, `-Infinity`.
|
|
5823
5355
|
*
|
|
@@ -5837,7 +5369,7 @@ export interface Frame {
|
|
|
5837
5369
|
* ```
|
|
5838
5370
|
*
|
|
5839
5371
|
* [ElementHandle](https://playwright.dev/docs/api/class-elementhandle) instances can be passed as an argument to the
|
|
5840
|
-
* [frame.evaluate(pageFunction[, arg
|
|
5372
|
+
* [frame.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate):
|
|
5841
5373
|
*
|
|
5842
5374
|
* ```js
|
|
5843
5375
|
* const bodyHandle = await frame.evaluateHandle('document.body');
|
|
@@ -5850,23 +5382,21 @@ export interface Frame {
|
|
|
5850
5382
|
* @param pageFunction Function to be evaluated in the page context.
|
|
5851
5383
|
* @param arg Optional argument to pass to
|
|
5852
5384
|
* [`pageFunction`](https://playwright.dev/docs/api/class-frame#frame-evaluate-option-expression).
|
|
5853
|
-
* @param options
|
|
5854
5385
|
*/
|
|
5855
|
-
evaluate<R, Arg>(pageFunction: PageFunction<Arg, R>, arg: Arg
|
|
5386
|
+
evaluate<R, Arg>(pageFunction: PageFunction<Arg, R>, arg: Arg): Promise<R>;
|
|
5856
5387
|
/**
|
|
5857
5388
|
* Returns the return value of
|
|
5858
5389
|
* [`pageFunction`](https://playwright.dev/docs/api/class-frame#frame-evaluate-option-expression).
|
|
5859
5390
|
*
|
|
5860
5391
|
* If the function passed to the
|
|
5861
|
-
* [frame.evaluate(pageFunction[, arg
|
|
5862
|
-
*
|
|
5863
|
-
*
|
|
5864
|
-
* wait for the promise to resolve and return its value.
|
|
5392
|
+
* [frame.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate) returns a
|
|
5393
|
+
* [Promise], then [frame.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate)
|
|
5394
|
+
* would wait for the promise to resolve and return its value.
|
|
5865
5395
|
*
|
|
5866
5396
|
* If the function passed to the
|
|
5867
|
-
* [frame.evaluate(pageFunction[, arg
|
|
5868
|
-
*
|
|
5869
|
-
* [frame.evaluate(pageFunction[, arg
|
|
5397
|
+
* [frame.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate) returns a
|
|
5398
|
+
* non-[Serializable] value, then
|
|
5399
|
+
* [frame.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate) returns
|
|
5870
5400
|
* `undefined`. Playwright also supports transferring some additional values that are not serializable by `JSON`:
|
|
5871
5401
|
* `-0`, `NaN`, `Infinity`, `-Infinity`.
|
|
5872
5402
|
*
|
|
@@ -5886,7 +5416,7 @@ export interface Frame {
|
|
|
5886
5416
|
* ```
|
|
5887
5417
|
*
|
|
5888
5418
|
* [ElementHandle](https://playwright.dev/docs/api/class-elementhandle) instances can be passed as an argument to the
|
|
5889
|
-
* [frame.evaluate(pageFunction[, arg
|
|
5419
|
+
* [frame.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate):
|
|
5890
5420
|
*
|
|
5891
5421
|
* ```js
|
|
5892
5422
|
* const bodyHandle = await frame.evaluateHandle('document.body');
|
|
@@ -5899,9 +5429,8 @@ export interface Frame {
|
|
|
5899
5429
|
* @param pageFunction Function to be evaluated in the page context.
|
|
5900
5430
|
* @param arg Optional argument to pass to
|
|
5901
5431
|
* [`pageFunction`](https://playwright.dev/docs/api/class-frame#frame-evaluate-option-expression).
|
|
5902
|
-
* @param options
|
|
5903
5432
|
*/
|
|
5904
|
-
evaluate<R>(pageFunction: PageFunction<void, R>, arg?: any
|
|
5433
|
+
evaluate<R>(pageFunction: PageFunction<void, R>, arg?: any): Promise<R>;
|
|
5905
5434
|
|
|
5906
5435
|
/**
|
|
5907
5436
|
* Returns the return value of
|
|
@@ -5909,16 +5438,15 @@ export interface Frame {
|
|
|
5909
5438
|
* [JSHandle](https://playwright.dev/docs/api/class-jshandle).
|
|
5910
5439
|
*
|
|
5911
5440
|
* The only difference between
|
|
5912
|
-
* [frame.evaluate(pageFunction[, arg
|
|
5913
|
-
* [frame.evaluateHandle(pageFunction[, arg
|
|
5914
|
-
*
|
|
5915
|
-
* [frame.evaluateHandle(pageFunction[, arg, options])](https://playwright.dev/docs/api/class-frame#frame-evaluate-handle)
|
|
5441
|
+
* [frame.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate) and
|
|
5442
|
+
* [frame.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate-handle) is
|
|
5443
|
+
* that [frame.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate-handle)
|
|
5916
5444
|
* returns [JSHandle](https://playwright.dev/docs/api/class-jshandle).
|
|
5917
5445
|
*
|
|
5918
5446
|
* If the function, passed to the
|
|
5919
|
-
* [frame.evaluateHandle(pageFunction[, arg
|
|
5447
|
+
* [frame.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate-handle),
|
|
5920
5448
|
* returns a [Promise], then
|
|
5921
|
-
* [frame.evaluateHandle(pageFunction[, arg
|
|
5449
|
+
* [frame.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate-handle)
|
|
5922
5450
|
* would wait for the promise to resolve and return its value.
|
|
5923
5451
|
*
|
|
5924
5452
|
* **Usage**
|
|
@@ -5935,7 +5463,7 @@ export interface Frame {
|
|
|
5935
5463
|
* ```
|
|
5936
5464
|
*
|
|
5937
5465
|
* [JSHandle](https://playwright.dev/docs/api/class-jshandle) instances can be passed as an argument to the
|
|
5938
|
-
* [frame.evaluateHandle(pageFunction[, arg
|
|
5466
|
+
* [frame.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate-handle):
|
|
5939
5467
|
*
|
|
5940
5468
|
* ```js
|
|
5941
5469
|
* const aHandle = await frame.evaluateHandle(() => document.body);
|
|
@@ -5949,25 +5477,23 @@ export interface Frame {
|
|
|
5949
5477
|
* @param pageFunction Function to be evaluated in the page context.
|
|
5950
5478
|
* @param arg Optional argument to pass to
|
|
5951
5479
|
* [`pageFunction`](https://playwright.dev/docs/api/class-frame#frame-evaluate-handle-option-expression).
|
|
5952
|
-
* @param options
|
|
5953
5480
|
*/
|
|
5954
|
-
evaluateHandle<R, Arg>(pageFunction: PageFunction<Arg, R>, arg: Arg
|
|
5481
|
+
evaluateHandle<R, Arg>(pageFunction: PageFunction<Arg, R>, arg: Arg): Promise<SmartHandle<R>>;
|
|
5955
5482
|
/**
|
|
5956
5483
|
* Returns the return value of
|
|
5957
5484
|
* [`pageFunction`](https://playwright.dev/docs/api/class-frame#frame-evaluate-handle-option-expression) as a
|
|
5958
5485
|
* [JSHandle](https://playwright.dev/docs/api/class-jshandle).
|
|
5959
5486
|
*
|
|
5960
5487
|
* The only difference between
|
|
5961
|
-
* [frame.evaluate(pageFunction[, arg
|
|
5962
|
-
* [frame.evaluateHandle(pageFunction[, arg
|
|
5963
|
-
*
|
|
5964
|
-
* [frame.evaluateHandle(pageFunction[, arg, options])](https://playwright.dev/docs/api/class-frame#frame-evaluate-handle)
|
|
5488
|
+
* [frame.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate) and
|
|
5489
|
+
* [frame.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate-handle) is
|
|
5490
|
+
* that [frame.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate-handle)
|
|
5965
5491
|
* returns [JSHandle](https://playwright.dev/docs/api/class-jshandle).
|
|
5966
5492
|
*
|
|
5967
5493
|
* If the function, passed to the
|
|
5968
|
-
* [frame.evaluateHandle(pageFunction[, arg
|
|
5494
|
+
* [frame.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate-handle),
|
|
5969
5495
|
* returns a [Promise], then
|
|
5970
|
-
* [frame.evaluateHandle(pageFunction[, arg
|
|
5496
|
+
* [frame.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate-handle)
|
|
5971
5497
|
* would wait for the promise to resolve and return its value.
|
|
5972
5498
|
*
|
|
5973
5499
|
* **Usage**
|
|
@@ -5984,7 +5510,7 @@ export interface Frame {
|
|
|
5984
5510
|
* ```
|
|
5985
5511
|
*
|
|
5986
5512
|
* [JSHandle](https://playwright.dev/docs/api/class-jshandle) instances can be passed as an argument to the
|
|
5987
|
-
* [frame.evaluateHandle(pageFunction[, arg
|
|
5513
|
+
* [frame.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frame-evaluate-handle):
|
|
5988
5514
|
*
|
|
5989
5515
|
* ```js
|
|
5990
5516
|
* const aHandle = await frame.evaluateHandle(() => document.body);
|
|
@@ -5998,9 +5524,8 @@ export interface Frame {
|
|
|
5998
5524
|
* @param pageFunction Function to be evaluated in the page context.
|
|
5999
5525
|
* @param arg Optional argument to pass to
|
|
6000
5526
|
* [`pageFunction`](https://playwright.dev/docs/api/class-frame#frame-evaluate-handle-option-expression).
|
|
6001
|
-
* @param options
|
|
6002
5527
|
*/
|
|
6003
|
-
evaluateHandle<R>(pageFunction: PageFunction<void, R>, arg?: any
|
|
5528
|
+
evaluateHandle<R>(pageFunction: PageFunction<void, R>, arg?: any): Promise<SmartHandle<R>>;
|
|
6004
5529
|
|
|
6005
5530
|
/**
|
|
6006
5531
|
* **NOTE** Use locator-based [frame.locator(selector[, options])](https://playwright.dev/docs/api/class-frame#frame-locator)
|
|
@@ -6671,25 +6196,6 @@ export interface Frame {
|
|
|
6671
6196
|
y: number;
|
|
6672
6197
|
};
|
|
6673
6198
|
|
|
6674
|
-
/**
|
|
6675
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
6676
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
6677
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
6678
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
6679
|
-
*/
|
|
6680
|
-
scroll?: "auto"|"none";
|
|
6681
|
-
|
|
6682
|
-
/**
|
|
6683
|
-
* Allows to cancel the operation using an
|
|
6684
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
6685
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
6686
|
-
* which can be changed using
|
|
6687
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
6688
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
6689
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
6690
|
-
*/
|
|
6691
|
-
signal?: AbortSignal;
|
|
6692
|
-
|
|
6693
6199
|
/**
|
|
6694
6200
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
6695
6201
|
* element, the call throws an exception.
|
|
@@ -6786,25 +6292,6 @@ export interface Frame {
|
|
|
6786
6292
|
y: number;
|
|
6787
6293
|
};
|
|
6788
6294
|
|
|
6789
|
-
/**
|
|
6790
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
6791
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
6792
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
6793
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
6794
|
-
*/
|
|
6795
|
-
scroll?: "auto"|"none";
|
|
6796
|
-
|
|
6797
|
-
/**
|
|
6798
|
-
* Allows to cancel the operation using an
|
|
6799
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
6800
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
6801
|
-
* which can be changed using
|
|
6802
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
6803
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
6804
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
6805
|
-
*/
|
|
6806
|
-
signal?: AbortSignal;
|
|
6807
|
-
|
|
6808
6295
|
/**
|
|
6809
6296
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
6810
6297
|
* element, the call throws an exception.
|
|
@@ -6901,25 +6388,6 @@ export interface Frame {
|
|
|
6901
6388
|
y: number;
|
|
6902
6389
|
};
|
|
6903
6390
|
|
|
6904
|
-
/**
|
|
6905
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
6906
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
6907
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
6908
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
6909
|
-
*/
|
|
6910
|
-
scroll?: "auto"|"none";
|
|
6911
|
-
|
|
6912
|
-
/**
|
|
6913
|
-
* Allows to cancel the operation using an
|
|
6914
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
6915
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
6916
|
-
* which can be changed using
|
|
6917
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
6918
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
6919
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
6920
|
-
*/
|
|
6921
|
-
signal?: AbortSignal;
|
|
6922
|
-
|
|
6923
6391
|
/**
|
|
6924
6392
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
6925
6393
|
* element, the call throws an exception.
|
|
@@ -6991,17 +6459,6 @@ export interface Frame {
|
|
|
6991
6459
|
* @param options
|
|
6992
6460
|
*/
|
|
6993
6461
|
dispatchEvent(selector: string, type: string, eventInit?: EvaluationArgument, options?: {
|
|
6994
|
-
/**
|
|
6995
|
-
* Allows to cancel the operation using an
|
|
6996
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
6997
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
6998
|
-
* which can be changed using
|
|
6999
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
7000
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
7001
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
7002
|
-
*/
|
|
7003
|
-
signal?: AbortSignal;
|
|
7004
|
-
|
|
7005
6462
|
/**
|
|
7006
6463
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
7007
6464
|
* element, the call throws an exception.
|
|
@@ -7036,25 +6493,6 @@ export interface Frame {
|
|
|
7036
6493
|
*/
|
|
7037
6494
|
noWaitAfter?: boolean;
|
|
7038
6495
|
|
|
7039
|
-
/**
|
|
7040
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
7041
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
7042
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
7043
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
7044
|
-
*/
|
|
7045
|
-
scroll?: "auto"|"none";
|
|
7046
|
-
|
|
7047
|
-
/**
|
|
7048
|
-
* Allows to cancel the operation using an
|
|
7049
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
7050
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
7051
|
-
* which can be changed using
|
|
7052
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
7053
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
7054
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
7055
|
-
*/
|
|
7056
|
-
signal?: AbortSignal;
|
|
7057
|
-
|
|
7058
6496
|
/**
|
|
7059
6497
|
* Clicks on the source element at this point relative to the top-left corner of the element's padding box. If not
|
|
7060
6498
|
* specified, some visible point of the element is used.
|
|
@@ -7135,17 +6573,6 @@ export interface Frame {
|
|
|
7135
6573
|
*/
|
|
7136
6574
|
noWaitAfter?: boolean;
|
|
7137
6575
|
|
|
7138
|
-
/**
|
|
7139
|
-
* Allows to cancel the operation using an
|
|
7140
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
7141
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
7142
|
-
* which can be changed using
|
|
7143
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
7144
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
7145
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
7146
|
-
*/
|
|
7147
|
-
signal?: AbortSignal;
|
|
7148
|
-
|
|
7149
6576
|
/**
|
|
7150
6577
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
7151
6578
|
* element, the call throws an exception.
|
|
@@ -7174,17 +6601,6 @@ export interface Frame {
|
|
|
7174
6601
|
* @param options
|
|
7175
6602
|
*/
|
|
7176
6603
|
focus(selector: string, options?: {
|
|
7177
|
-
/**
|
|
7178
|
-
* Allows to cancel the operation using an
|
|
7179
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
7180
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
7181
|
-
* which can be changed using
|
|
7182
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
7183
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
7184
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
7185
|
-
*/
|
|
7186
|
-
signal?: AbortSignal;
|
|
7187
|
-
|
|
7188
6604
|
/**
|
|
7189
6605
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
7190
6606
|
* element, the call throws an exception.
|
|
@@ -7250,17 +6666,6 @@ export interface Frame {
|
|
|
7250
6666
|
* @param options
|
|
7251
6667
|
*/
|
|
7252
6668
|
getAttribute(selector: string, name: string, options?: {
|
|
7253
|
-
/**
|
|
7254
|
-
* Allows to cancel the operation using an
|
|
7255
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
7256
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
7257
|
-
* which can be changed using
|
|
7258
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
7259
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
7260
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
7261
|
-
*/
|
|
7262
|
-
signal?: AbortSignal;
|
|
7263
|
-
|
|
7264
6669
|
/**
|
|
7265
6670
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
7266
6671
|
* element, the call throws an exception.
|
|
@@ -7633,17 +7038,6 @@ export interface Frame {
|
|
|
7633
7038
|
*/
|
|
7634
7039
|
referer?: string;
|
|
7635
7040
|
|
|
7636
|
-
/**
|
|
7637
|
-
* Allows to cancel the operation using an
|
|
7638
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
7639
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
7640
|
-
* which can be changed using
|
|
7641
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
7642
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
7643
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
7644
|
-
*/
|
|
7645
|
-
signal?: AbortSignal;
|
|
7646
|
-
|
|
7647
7041
|
/**
|
|
7648
7042
|
* Maximum operation time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via
|
|
7649
7043
|
* `navigationTimeout` option in the config, or by using the
|
|
@@ -7720,25 +7114,6 @@ export interface Frame {
|
|
|
7720
7114
|
y: number;
|
|
7721
7115
|
};
|
|
7722
7116
|
|
|
7723
|
-
/**
|
|
7724
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
7725
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
7726
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
7727
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
7728
|
-
*/
|
|
7729
|
-
scroll?: "auto"|"none";
|
|
7730
|
-
|
|
7731
|
-
/**
|
|
7732
|
-
* Allows to cancel the operation using an
|
|
7733
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
7734
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
7735
|
-
* which can be changed using
|
|
7736
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
7737
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
7738
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
7739
|
-
*/
|
|
7740
|
-
signal?: AbortSignal;
|
|
7741
|
-
|
|
7742
7117
|
/**
|
|
7743
7118
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
7744
7119
|
* element, the call throws an exception.
|
|
@@ -7772,17 +7147,6 @@ export interface Frame {
|
|
|
7772
7147
|
* @param options
|
|
7773
7148
|
*/
|
|
7774
7149
|
innerHTML(selector: string, options?: {
|
|
7775
|
-
/**
|
|
7776
|
-
* Allows to cancel the operation using an
|
|
7777
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
7778
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
7779
|
-
* which can be changed using
|
|
7780
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
7781
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
7782
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
7783
|
-
*/
|
|
7784
|
-
signal?: AbortSignal;
|
|
7785
|
-
|
|
7786
7150
|
/**
|
|
7787
7151
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
7788
7152
|
* element, the call throws an exception.
|
|
@@ -7808,17 +7172,6 @@ export interface Frame {
|
|
|
7808
7172
|
* @param options
|
|
7809
7173
|
*/
|
|
7810
7174
|
innerText(selector: string, options?: {
|
|
7811
|
-
/**
|
|
7812
|
-
* Allows to cancel the operation using an
|
|
7813
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
7814
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
7815
|
-
* which can be changed using
|
|
7816
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
7817
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
7818
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
7819
|
-
*/
|
|
7820
|
-
signal?: AbortSignal;
|
|
7821
|
-
|
|
7822
7175
|
/**
|
|
7823
7176
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
7824
7177
|
* element, the call throws an exception.
|
|
@@ -7849,17 +7202,6 @@ export interface Frame {
|
|
|
7849
7202
|
* @param options
|
|
7850
7203
|
*/
|
|
7851
7204
|
inputValue(selector: string, options?: {
|
|
7852
|
-
/**
|
|
7853
|
-
* Allows to cancel the operation using an
|
|
7854
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
7855
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
7856
|
-
* which can be changed using
|
|
7857
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
7858
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
7859
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
7860
|
-
*/
|
|
7861
|
-
signal?: AbortSignal;
|
|
7862
|
-
|
|
7863
7205
|
/**
|
|
7864
7206
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
7865
7207
|
* element, the call throws an exception.
|
|
@@ -7885,17 +7227,6 @@ export interface Frame {
|
|
|
7885
7227
|
* @param options
|
|
7886
7228
|
*/
|
|
7887
7229
|
isChecked(selector: string, options?: {
|
|
7888
|
-
/**
|
|
7889
|
-
* Allows to cancel the operation using an
|
|
7890
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
7891
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
7892
|
-
* which can be changed using
|
|
7893
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
7894
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
7895
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
7896
|
-
*/
|
|
7897
|
-
signal?: AbortSignal;
|
|
7898
|
-
|
|
7899
7230
|
/**
|
|
7900
7231
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
7901
7232
|
* element, the call throws an exception.
|
|
@@ -7927,17 +7258,6 @@ export interface Frame {
|
|
|
7927
7258
|
* @param options
|
|
7928
7259
|
*/
|
|
7929
7260
|
isDisabled(selector: string, options?: {
|
|
7930
|
-
/**
|
|
7931
|
-
* Allows to cancel the operation using an
|
|
7932
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
7933
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
7934
|
-
* which can be changed using
|
|
7935
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
7936
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
7937
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
7938
|
-
*/
|
|
7939
|
-
signal?: AbortSignal;
|
|
7940
|
-
|
|
7941
7261
|
/**
|
|
7942
7262
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
7943
7263
|
* element, the call throws an exception.
|
|
@@ -7964,17 +7284,6 @@ export interface Frame {
|
|
|
7964
7284
|
* @param options
|
|
7965
7285
|
*/
|
|
7966
7286
|
isEditable(selector: string, options?: {
|
|
7967
|
-
/**
|
|
7968
|
-
* Allows to cancel the operation using an
|
|
7969
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
7970
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
7971
|
-
* which can be changed using
|
|
7972
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
7973
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
7974
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
7975
|
-
*/
|
|
7976
|
-
signal?: AbortSignal;
|
|
7977
|
-
|
|
7978
7287
|
/**
|
|
7979
7288
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
7980
7289
|
* element, the call throws an exception.
|
|
@@ -7997,17 +7306,6 @@ export interface Frame {
|
|
|
7997
7306
|
* @param options
|
|
7998
7307
|
*/
|
|
7999
7308
|
isEnabled(selector: string, options?: {
|
|
8000
|
-
/**
|
|
8001
|
-
* Allows to cancel the operation using an
|
|
8002
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
8003
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
8004
|
-
* which can be changed using
|
|
8005
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
8006
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
8007
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
8008
|
-
*/
|
|
8009
|
-
signal?: AbortSignal;
|
|
8010
|
-
|
|
8011
7309
|
/**
|
|
8012
7310
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
8013
7311
|
* element, the call throws an exception.
|
|
@@ -8189,17 +7487,6 @@ export interface Frame {
|
|
|
8189
7487
|
*/
|
|
8190
7488
|
noWaitAfter?: boolean;
|
|
8191
7489
|
|
|
8192
|
-
/**
|
|
8193
|
-
* Allows to cancel the operation using an
|
|
8194
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
8195
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
8196
|
-
* which can be changed using
|
|
8197
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
8198
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
8199
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
8200
|
-
*/
|
|
8201
|
-
signal?: AbortSignal;
|
|
8202
|
-
|
|
8203
7490
|
/**
|
|
8204
7491
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
8205
7492
|
* element, the call throws an exception.
|
|
@@ -8295,17 +7582,6 @@ export interface Frame {
|
|
|
8295
7582
|
*/
|
|
8296
7583
|
noWaitAfter?: boolean;
|
|
8297
7584
|
|
|
8298
|
-
/**
|
|
8299
|
-
* Allows to cancel the operation using an
|
|
8300
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
8301
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
8302
|
-
* which can be changed using
|
|
8303
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
8304
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
8305
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
8306
|
-
*/
|
|
8307
|
-
signal?: AbortSignal;
|
|
8308
|
-
|
|
8309
7585
|
/**
|
|
8310
7586
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
8311
7587
|
* element, the call throws an exception.
|
|
@@ -8372,25 +7648,6 @@ export interface Frame {
|
|
|
8372
7648
|
y: number;
|
|
8373
7649
|
};
|
|
8374
7650
|
|
|
8375
|
-
/**
|
|
8376
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
8377
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
8378
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
8379
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
8380
|
-
*/
|
|
8381
|
-
scroll?: "auto"|"none";
|
|
8382
|
-
|
|
8383
|
-
/**
|
|
8384
|
-
* Allows to cancel the operation using an
|
|
8385
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
8386
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
8387
|
-
* which can be changed using
|
|
8388
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
8389
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
8390
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
8391
|
-
*/
|
|
8392
|
-
signal?: AbortSignal;
|
|
8393
|
-
|
|
8394
7651
|
/**
|
|
8395
7652
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
8396
7653
|
* element, the call throws an exception.
|
|
@@ -8419,17 +7676,6 @@ export interface Frame {
|
|
|
8419
7676
|
* @param options
|
|
8420
7677
|
*/
|
|
8421
7678
|
setContent(html: string, options?: {
|
|
8422
|
-
/**
|
|
8423
|
-
* Allows to cancel the operation using an
|
|
8424
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
8425
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
8426
|
-
* which can be changed using
|
|
8427
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
8428
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
8429
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
8430
|
-
*/
|
|
8431
|
-
signal?: AbortSignal;
|
|
8432
|
-
|
|
8433
7679
|
/**
|
|
8434
7680
|
* Maximum operation time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via
|
|
8435
7681
|
* `navigationTimeout` option in the config, or by using the
|
|
@@ -8506,17 +7752,6 @@ export interface Frame {
|
|
|
8506
7752
|
*/
|
|
8507
7753
|
noWaitAfter?: boolean;
|
|
8508
7754
|
|
|
8509
|
-
/**
|
|
8510
|
-
* Allows to cancel the operation using an
|
|
8511
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
8512
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
8513
|
-
* which can be changed using
|
|
8514
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
8515
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
8516
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
8517
|
-
*/
|
|
8518
|
-
signal?: AbortSignal;
|
|
8519
|
-
|
|
8520
7755
|
/**
|
|
8521
7756
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
8522
7757
|
* element, the call throws an exception.
|
|
@@ -8588,25 +7823,6 @@ export interface Frame {
|
|
|
8588
7823
|
y: number;
|
|
8589
7824
|
};
|
|
8590
7825
|
|
|
8591
|
-
/**
|
|
8592
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
8593
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
8594
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
8595
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
8596
|
-
*/
|
|
8597
|
-
scroll?: "auto"|"none";
|
|
8598
|
-
|
|
8599
|
-
/**
|
|
8600
|
-
* Allows to cancel the operation using an
|
|
8601
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
8602
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
8603
|
-
* which can be changed using
|
|
8604
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
8605
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
8606
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
8607
|
-
*/
|
|
8608
|
-
signal?: AbortSignal;
|
|
8609
|
-
|
|
8610
7826
|
/**
|
|
8611
7827
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
8612
7828
|
* element, the call throws an exception.
|
|
@@ -8641,17 +7857,6 @@ export interface Frame {
|
|
|
8641
7857
|
* @param options
|
|
8642
7858
|
*/
|
|
8643
7859
|
textContent(selector: string, options?: {
|
|
8644
|
-
/**
|
|
8645
|
-
* Allows to cancel the operation using an
|
|
8646
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
8647
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
8648
|
-
* which can be changed using
|
|
8649
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
8650
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
8651
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
8652
|
-
*/
|
|
8653
|
-
signal?: AbortSignal;
|
|
8654
|
-
|
|
8655
7860
|
/**
|
|
8656
7861
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
8657
7862
|
* element, the call throws an exception.
|
|
@@ -8702,17 +7907,6 @@ export interface Frame {
|
|
|
8702
7907
|
*/
|
|
8703
7908
|
noWaitAfter?: boolean;
|
|
8704
7909
|
|
|
8705
|
-
/**
|
|
8706
|
-
* Allows to cancel the operation using an
|
|
8707
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
8708
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
8709
|
-
* which can be changed using
|
|
8710
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
8711
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
8712
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
8713
|
-
*/
|
|
8714
|
-
signal?: AbortSignal;
|
|
8715
|
-
|
|
8716
7910
|
/**
|
|
8717
7911
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
8718
7912
|
* element, the call throws an exception.
|
|
@@ -8777,25 +7971,6 @@ export interface Frame {
|
|
|
8777
7971
|
y: number;
|
|
8778
7972
|
};
|
|
8779
7973
|
|
|
8780
|
-
/**
|
|
8781
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
8782
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
8783
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
8784
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
8785
|
-
*/
|
|
8786
|
-
scroll?: "auto"|"none";
|
|
8787
|
-
|
|
8788
|
-
/**
|
|
8789
|
-
* Allows to cancel the operation using an
|
|
8790
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
8791
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
8792
|
-
* which can be changed using
|
|
8793
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
8794
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
8795
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
8796
|
-
*/
|
|
8797
|
-
signal?: AbortSignal;
|
|
8798
|
-
|
|
8799
7974
|
/**
|
|
8800
7975
|
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
|
|
8801
7976
|
* element, the call throws an exception.
|
|
@@ -8848,16 +8023,6 @@ export interface Frame {
|
|
|
8848
8023
|
* @param options
|
|
8849
8024
|
*/
|
|
8850
8025
|
waitForLoadState(state?: "load"|"domcontentloaded"|"networkidle", options?: {
|
|
8851
|
-
/**
|
|
8852
|
-
* Allows to cancel the waiting using an
|
|
8853
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
8854
|
-
* waiting will be aborted and the operation will throw an error. Note that providing a signal does not disable the
|
|
8855
|
-
* default timeout, which can be changed using
|
|
8856
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout);
|
|
8857
|
-
* pass `timeout: 0` to disable the timeout entirely.
|
|
8858
|
-
*/
|
|
8859
|
-
signal?: AbortSignal;
|
|
8860
|
-
|
|
8861
8026
|
/**
|
|
8862
8027
|
* Maximum operation time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via
|
|
8863
8028
|
* `navigationTimeout` option in the config, or by using the
|
|
@@ -8894,16 +8059,6 @@ export interface Frame {
|
|
|
8894
8059
|
* @param options
|
|
8895
8060
|
*/
|
|
8896
8061
|
waitForNavigation(options?: {
|
|
8897
|
-
/**
|
|
8898
|
-
* Allows to cancel the waiting using an
|
|
8899
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
8900
|
-
* waiting will be aborted and the operation will throw an error. Note that providing a signal does not disable the
|
|
8901
|
-
* default timeout, which can be changed using
|
|
8902
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout);
|
|
8903
|
-
* pass `timeout: 0` to disable the timeout entirely.
|
|
8904
|
-
*/
|
|
8905
|
-
signal?: AbortSignal;
|
|
8906
|
-
|
|
8907
8062
|
/**
|
|
8908
8063
|
* Maximum operation time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via
|
|
8909
8064
|
* `navigationTimeout` option in the config, or by using the
|
|
@@ -8962,16 +8117,6 @@ export interface Frame {
|
|
|
8962
8117
|
* @param options
|
|
8963
8118
|
*/
|
|
8964
8119
|
waitForURL(url: string|RegExp|URLPattern|((url: URL) => boolean), options?: {
|
|
8965
|
-
/**
|
|
8966
|
-
* Allows to cancel the waiting using an
|
|
8967
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
8968
|
-
* waiting will be aborted and the operation will throw an error. Note that providing a signal does not disable the
|
|
8969
|
-
* default timeout, which can be changed using
|
|
8970
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout);
|
|
8971
|
-
* pass `timeout: 0` to disable the timeout entirely.
|
|
8972
|
-
*/
|
|
8973
|
-
signal?: AbortSignal;
|
|
8974
|
-
|
|
8975
8120
|
/**
|
|
8976
8121
|
* Maximum operation time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via
|
|
8977
8122
|
* `navigationTimeout` option in the config, or by using the
|
|
@@ -9091,17 +8236,16 @@ export interface BrowserContext {
|
|
|
9091
8236
|
* ```
|
|
9092
8237
|
*
|
|
9093
8238
|
* **NOTE** The order of evaluation of multiple scripts installed via
|
|
9094
|
-
* [browserContext.addInitScript(script[, arg
|
|
9095
|
-
* and [page.addInitScript(script[, arg
|
|
9096
|
-
*
|
|
8239
|
+
* [browserContext.addInitScript(script[, arg])](https://playwright.dev/docs/api/class-browsercontext#browser-context-add-init-script)
|
|
8240
|
+
* and [page.addInitScript(script[, arg])](https://playwright.dev/docs/api/class-page#page-add-init-script) is not
|
|
8241
|
+
* defined.
|
|
9097
8242
|
*
|
|
9098
8243
|
* @param script Script to be evaluated in all pages in the browser context.
|
|
9099
8244
|
* @param arg Optional argument to pass to
|
|
9100
8245
|
* [`script`](https://playwright.dev/docs/api/class-browsercontext#browser-context-add-init-script-option-script)
|
|
9101
8246
|
* (only supported when passing a function).
|
|
9102
|
-
* @param options
|
|
9103
8247
|
*/
|
|
9104
|
-
addInitScript<Arg>(script: PageFunction<Arg, any> | { path?: string, content?: string }, arg?: Arg
|
|
8248
|
+
addInitScript<Arg>(script: PageFunction<Arg, any> | { path?: string, content?: string }, arg?: Arg): Promise<Disposable>;
|
|
9105
8249
|
|
|
9106
8250
|
/**
|
|
9107
8251
|
* Removes all the listeners of the given type (or all registered listeners if no type given). Allows to wait for
|
|
@@ -10427,10 +9571,7 @@ export interface BrowserContext {
|
|
|
10427
9571
|
setOffline(offline: boolean): Promise<void>;
|
|
10428
9572
|
|
|
10429
9573
|
/**
|
|
10430
|
-
* Clears the existing cookies, local storage
|
|
10431
|
-
* storage state. When the storage state contains credentials, the virtual WebAuthn authenticator is installed
|
|
10432
|
-
* (equivalent to [credentials.install()](https://playwright.dev/docs/api/class-credentials#credentials-install)),
|
|
10433
|
-
* preventing all real authenticators from working in this context.
|
|
9574
|
+
* Clears the existing cookies, local storage and IndexedDB entries for all origins and sets the new storage state.
|
|
10434
9575
|
*
|
|
10435
9576
|
* **Usage**
|
|
10436
9577
|
*
|
|
@@ -10495,24 +9636,11 @@ export interface BrowserContext {
|
|
|
10495
9636
|
}): Promise<void>;
|
|
10496
9637
|
|
|
10497
9638
|
/**
|
|
10498
|
-
* Returns storage state for this browser context, contains current cookies, local storage snapshot
|
|
10499
|
-
* snapshot
|
|
9639
|
+
* Returns storage state for this browser context, contains current cookies, local storage snapshot and IndexedDB
|
|
9640
|
+
* snapshot.
|
|
10500
9641
|
* @param options
|
|
10501
9642
|
*/
|
|
10502
9643
|
storageState(options?: {
|
|
10503
|
-
/**
|
|
10504
|
-
* Set to `true` to include the context's virtual WebAuthn
|
|
10505
|
-
* [browserContext.credentials](https://playwright.dev/docs/api/class-browsercontext#browser-context-credentials)
|
|
10506
|
-
* (passkeys) in the storage state snapshot. The captured credentials carry their private keys, so they can be
|
|
10507
|
-
* re-seeded into a later context via the
|
|
10508
|
-
* [`storageState`](https://playwright.dev/docs/api/class-browser#browser-new-context-option-storage-state) option or
|
|
10509
|
-
* [browserContext.setStorageState(storageState)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-storage-state).
|
|
10510
|
-
* Note that restoring the storage state that contains credentials will automatically install the virtual WebAuthn
|
|
10511
|
-
* authenticator (see [credentials.install()](https://playwright.dev/docs/api/class-credentials#credentials-install)),
|
|
10512
|
-
* and prevent all real authenticators from working in this context.
|
|
10513
|
-
*/
|
|
10514
|
-
credentials?: boolean;
|
|
10515
|
-
|
|
10516
9644
|
/**
|
|
10517
9645
|
* Set to `true` to include [IndexedDB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API) in the storage
|
|
10518
9646
|
* state snapshot. If your application uses IndexedDB to store authentication tokens, like Firebase Authentication,
|
|
@@ -10595,7 +9723,7 @@ export interface BrowserContext {
|
|
|
10595
9723
|
/**
|
|
10596
9724
|
* This event is not emitted.
|
|
10597
9725
|
*/
|
|
10598
|
-
waitForEvent(event: 'backgroundpage', optionsOrPredicate?: { predicate?: (page: Page) => boolean | Promise<boolean>, timeout?: number
|
|
9726
|
+
waitForEvent(event: 'backgroundpage', optionsOrPredicate?: { predicate?: (page: Page) => boolean | Promise<boolean>, timeout?: number } | ((page: Page) => boolean | Promise<boolean>)): Promise<Page>;
|
|
10599
9727
|
|
|
10600
9728
|
/**
|
|
10601
9729
|
* Emitted when Browser context gets closed. This might happen because of one of the following:
|
|
@@ -10603,7 +9731,7 @@ export interface BrowserContext {
|
|
|
10603
9731
|
* - Browser application is closed or crashed.
|
|
10604
9732
|
* - The [browser.close([options])](https://playwright.dev/docs/api/class-browser#browser-close) method was called.
|
|
10605
9733
|
*/
|
|
10606
|
-
waitForEvent(event: 'close', optionsOrPredicate?: { predicate?: (browserContext: BrowserContext) => boolean | Promise<boolean>, timeout?: number
|
|
9734
|
+
waitForEvent(event: 'close', optionsOrPredicate?: { predicate?: (browserContext: BrowserContext) => boolean | Promise<boolean>, timeout?: number } | ((browserContext: BrowserContext) => boolean | Promise<boolean>)): Promise<BrowserContext>;
|
|
10607
9735
|
|
|
10608
9736
|
/**
|
|
10609
9737
|
* Emitted when JavaScript within the page calls one of console API methods, e.g. `console.log` or `console.dir`.
|
|
@@ -10624,7 +9752,7 @@ export interface BrowserContext {
|
|
|
10624
9752
|
* ```
|
|
10625
9753
|
*
|
|
10626
9754
|
*/
|
|
10627
|
-
waitForEvent(event: 'console', optionsOrPredicate?: { predicate?: (consoleMessage: ConsoleMessage) => boolean | Promise<boolean>, timeout?: number
|
|
9755
|
+
waitForEvent(event: 'console', optionsOrPredicate?: { predicate?: (consoleMessage: ConsoleMessage) => boolean | Promise<boolean>, timeout?: number } | ((consoleMessage: ConsoleMessage) => boolean | Promise<boolean>)): Promise<ConsoleMessage>;
|
|
10628
9756
|
|
|
10629
9757
|
/**
|
|
10630
9758
|
* Emitted when a JavaScript dialog appears, such as `alert`, `prompt`, `confirm` or `beforeunload`. Listener **must**
|
|
@@ -10646,7 +9774,7 @@ export interface BrowserContext {
|
|
|
10646
9774
|
* listeners are present, all dialogs are automatically dismissed.
|
|
10647
9775
|
*
|
|
10648
9776
|
*/
|
|
10649
|
-
waitForEvent(event: 'dialog', optionsOrPredicate?: { predicate?: (dialog: Dialog) => boolean | Promise<boolean>, timeout?: number
|
|
9777
|
+
waitForEvent(event: 'dialog', optionsOrPredicate?: { predicate?: (dialog: Dialog) => boolean | Promise<boolean>, timeout?: number } | ((dialog: Dialog) => boolean | Promise<boolean>)): Promise<Dialog>;
|
|
10650
9778
|
|
|
10651
9779
|
/**
|
|
10652
9780
|
* Emitted when attachment download started in any page belonging to this context. User can access basic file
|
|
@@ -10654,28 +9782,28 @@ export interface BrowserContext {
|
|
|
10654
9782
|
* instance. See also [page.on('download')](https://playwright.dev/docs/api/class-page#page-event-download) to receive
|
|
10655
9783
|
* events about a specific page.
|
|
10656
9784
|
*/
|
|
10657
|
-
waitForEvent(event: 'download', optionsOrPredicate?: { predicate?: (download: Download) => boolean | Promise<boolean>, timeout?: number
|
|
9785
|
+
waitForEvent(event: 'download', optionsOrPredicate?: { predicate?: (download: Download) => boolean | Promise<boolean>, timeout?: number } | ((download: Download) => boolean | Promise<boolean>)): Promise<Download>;
|
|
10658
9786
|
|
|
10659
9787
|
/**
|
|
10660
9788
|
* Emitted when a frame is attached in any page belonging to this context. See also
|
|
10661
9789
|
* [page.on('frameattached')](https://playwright.dev/docs/api/class-page#page-event-frame-attached) to receive events
|
|
10662
9790
|
* about a specific page.
|
|
10663
9791
|
*/
|
|
10664
|
-
waitForEvent(event: 'frameattached', optionsOrPredicate?: { predicate?: (frame: Frame) => boolean | Promise<boolean>, timeout?: number
|
|
9792
|
+
waitForEvent(event: 'frameattached', optionsOrPredicate?: { predicate?: (frame: Frame) => boolean | Promise<boolean>, timeout?: number } | ((frame: Frame) => boolean | Promise<boolean>)): Promise<Frame>;
|
|
10665
9793
|
|
|
10666
9794
|
/**
|
|
10667
9795
|
* Emitted when a frame is detached in any page belonging to this context. See also
|
|
10668
9796
|
* [page.on('framedetached')](https://playwright.dev/docs/api/class-page#page-event-frame-detached) to receive events
|
|
10669
9797
|
* about a specific page.
|
|
10670
9798
|
*/
|
|
10671
|
-
waitForEvent(event: 'framedetached', optionsOrPredicate?: { predicate?: (frame: Frame) => boolean | Promise<boolean>, timeout?: number
|
|
9799
|
+
waitForEvent(event: 'framedetached', optionsOrPredicate?: { predicate?: (frame: Frame) => boolean | Promise<boolean>, timeout?: number } | ((frame: Frame) => boolean | Promise<boolean>)): Promise<Frame>;
|
|
10672
9800
|
|
|
10673
9801
|
/**
|
|
10674
9802
|
* Emitted when a frame is navigated to a new url in any page belonging to this context. See also
|
|
10675
9803
|
* [page.on('framenavigated')](https://playwright.dev/docs/api/class-page#page-event-frame-navigated) to receive
|
|
10676
9804
|
* events about navigations in a specific page.
|
|
10677
9805
|
*/
|
|
10678
|
-
waitForEvent(event: 'framenavigated', optionsOrPredicate?: { predicate?: (frame: Frame) => boolean | Promise<boolean>, timeout?: number
|
|
9806
|
+
waitForEvent(event: 'framenavigated', optionsOrPredicate?: { predicate?: (frame: Frame) => boolean | Promise<boolean>, timeout?: number } | ((frame: Frame) => boolean | Promise<boolean>)): Promise<Frame>;
|
|
10679
9807
|
|
|
10680
9808
|
/**
|
|
10681
9809
|
* The event is emitted when a new Page is created in the BrowserContext. The page may still be loading. The event
|
|
@@ -10704,14 +9832,14 @@ export interface BrowserContext {
|
|
|
10704
9832
|
* wait until the page gets to a particular state (you should not need it in most cases).
|
|
10705
9833
|
*
|
|
10706
9834
|
*/
|
|
10707
|
-
waitForEvent(event: 'page', optionsOrPredicate?: { predicate?: (page: Page) => boolean | Promise<boolean>, timeout?: number
|
|
9835
|
+
waitForEvent(event: 'page', optionsOrPredicate?: { predicate?: (page: Page) => boolean | Promise<boolean>, timeout?: number } | ((page: Page) => boolean | Promise<boolean>)): Promise<Page>;
|
|
10708
9836
|
|
|
10709
9837
|
/**
|
|
10710
9838
|
* Emitted when a page in this context is closed. See also
|
|
10711
9839
|
* [page.on('close')](https://playwright.dev/docs/api/class-page#page-event-close) to receive events about a specific
|
|
10712
9840
|
* page.
|
|
10713
9841
|
*/
|
|
10714
|
-
waitForEvent(event: 'pageclose', optionsOrPredicate?: { predicate?: (page: Page) => boolean | Promise<boolean>, timeout?: number
|
|
9842
|
+
waitForEvent(event: 'pageclose', optionsOrPredicate?: { predicate?: (page: Page) => boolean | Promise<boolean>, timeout?: number } | ((page: Page) => boolean | Promise<boolean>)): Promise<Page>;
|
|
10715
9843
|
|
|
10716
9844
|
/**
|
|
10717
9845
|
* Emitted when the JavaScript [`load`](https://developer.mozilla.org/en-US/docs/Web/Events/load) event is dispatched
|
|
@@ -10719,7 +9847,7 @@ export interface BrowserContext {
|
|
|
10719
9847
|
* [page.on('load')](https://playwright.dev/docs/api/class-page#page-event-load) to receive events about a specific
|
|
10720
9848
|
* page.
|
|
10721
9849
|
*/
|
|
10722
|
-
waitForEvent(event: 'pageload', optionsOrPredicate?: { predicate?: (page: Page) => boolean | Promise<boolean>, timeout?: number
|
|
9850
|
+
waitForEvent(event: 'pageload', optionsOrPredicate?: { predicate?: (page: Page) => boolean | Promise<boolean>, timeout?: number } | ((page: Page) => boolean | Promise<boolean>)): Promise<Page>;
|
|
10723
9851
|
|
|
10724
9852
|
/**
|
|
10725
9853
|
* Emitted when a request is issued from any pages created through this context. The [request] object is read-only. To
|
|
@@ -10730,7 +9858,7 @@ export interface BrowserContext {
|
|
|
10730
9858
|
* [browserContext.route(url, handler[, options])](https://playwright.dev/docs/api/class-browsercontext#browser-context-route)
|
|
10731
9859
|
* or [page.route(url, handler[, options])](https://playwright.dev/docs/api/class-page#page-route).
|
|
10732
9860
|
*/
|
|
10733
|
-
waitForEvent(event: 'request', optionsOrPredicate?: { predicate?: (request: Request) => boolean | Promise<boolean>, timeout?: number
|
|
9861
|
+
waitForEvent(event: 'request', optionsOrPredicate?: { predicate?: (request: Request) => boolean | Promise<boolean>, timeout?: number } | ((request: Request) => boolean | Promise<boolean>)): Promise<Request>;
|
|
10734
9862
|
|
|
10735
9863
|
/**
|
|
10736
9864
|
* Emitted when a request fails, for example by timing out. To only listen for failed requests from a particular page,
|
|
@@ -10743,7 +9871,7 @@ export interface BrowserContext {
|
|
|
10743
9871
|
* [browserContext.on('requestfailed')](https://playwright.dev/docs/api/class-browsercontext#browser-context-event-request-failed).
|
|
10744
9872
|
*
|
|
10745
9873
|
*/
|
|
10746
|
-
waitForEvent(event: 'requestfailed', optionsOrPredicate?: { predicate?: (request: Request) => boolean | Promise<boolean>, timeout?: number
|
|
9874
|
+
waitForEvent(event: 'requestfailed', optionsOrPredicate?: { predicate?: (request: Request) => boolean | Promise<boolean>, timeout?: number } | ((request: Request) => boolean | Promise<boolean>)): Promise<Request>;
|
|
10747
9875
|
|
|
10748
9876
|
/**
|
|
10749
9877
|
* Emitted when a request finishes successfully after downloading the response body. For a successful response, the
|
|
@@ -10751,27 +9879,27 @@ export interface BrowserContext {
|
|
|
10751
9879
|
* particular page, use
|
|
10752
9880
|
* [page.on('requestfinished')](https://playwright.dev/docs/api/class-page#page-event-request-finished).
|
|
10753
9881
|
*/
|
|
10754
|
-
waitForEvent(event: 'requestfinished', optionsOrPredicate?: { predicate?: (request: Request) => boolean | Promise<boolean>, timeout?: number
|
|
9882
|
+
waitForEvent(event: 'requestfinished', optionsOrPredicate?: { predicate?: (request: Request) => boolean | Promise<boolean>, timeout?: number } | ((request: Request) => boolean | Promise<boolean>)): Promise<Request>;
|
|
10755
9883
|
|
|
10756
9884
|
/**
|
|
10757
9885
|
* Emitted when [response] status and headers are received for a request. For a successful response, the sequence of
|
|
10758
9886
|
* events is `request`, `response` and `requestfinished`. To listen for response events from a particular page, use
|
|
10759
9887
|
* [page.on('response')](https://playwright.dev/docs/api/class-page#page-event-response).
|
|
10760
9888
|
*/
|
|
10761
|
-
waitForEvent(event: 'response', optionsOrPredicate?: { predicate?: (response: Response) => boolean | Promise<boolean>, timeout?: number
|
|
9889
|
+
waitForEvent(event: 'response', optionsOrPredicate?: { predicate?: (response: Response) => boolean | Promise<boolean>, timeout?: number } | ((response: Response) => boolean | Promise<boolean>)): Promise<Response>;
|
|
10762
9890
|
|
|
10763
9891
|
/**
|
|
10764
9892
|
* **NOTE** Service workers are only supported on Chromium-based browsers.
|
|
10765
9893
|
*
|
|
10766
9894
|
* Emitted when new service worker is created in the context.
|
|
10767
9895
|
*/
|
|
10768
|
-
waitForEvent(event: 'serviceworker', optionsOrPredicate?: { predicate?: (worker: Worker) => boolean | Promise<boolean>, timeout?: number
|
|
9896
|
+
waitForEvent(event: 'serviceworker', optionsOrPredicate?: { predicate?: (worker: Worker) => boolean | Promise<boolean>, timeout?: number } | ((worker: Worker) => boolean | Promise<boolean>)): Promise<Worker>;
|
|
10769
9897
|
|
|
10770
9898
|
/**
|
|
10771
9899
|
* Emitted when exception is unhandled in any of the pages in this context. To listen for errors from a particular
|
|
10772
9900
|
* page, use [page.on('pageerror')](https://playwright.dev/docs/api/class-page#page-event-page-error) instead.
|
|
10773
9901
|
*/
|
|
10774
|
-
waitForEvent(event: 'weberror', optionsOrPredicate?: { predicate?: (webError: WebError) => boolean | Promise<boolean>, timeout?: number
|
|
9902
|
+
waitForEvent(event: 'weberror', optionsOrPredicate?: { predicate?: (webError: WebError) => boolean | Promise<boolean>, timeout?: number } | ((webError: WebError) => boolean | Promise<boolean>)): Promise<WebError>;
|
|
10775
9903
|
|
|
10776
9904
|
|
|
10777
9905
|
/**
|
|
@@ -11370,12 +10498,6 @@ export interface Browser {
|
|
|
11370
10498
|
* Font size of the action title in pixels. Defaults to `24`.
|
|
11371
10499
|
*/
|
|
11372
10500
|
fontSize?: number;
|
|
11373
|
-
|
|
11374
|
-
/**
|
|
11375
|
-
* Cursor decoration shown for pointer actions. `"pointer"` (the default) renders a mouse pointer that animates from
|
|
11376
|
-
* the previous action point to the next one. `"none"` disables the cursor decoration.
|
|
11377
|
-
*/
|
|
11378
|
-
cursor?: "none"|"pointer";
|
|
11379
10501
|
};
|
|
11380
10502
|
};
|
|
11381
10503
|
|
|
@@ -11744,19 +10866,18 @@ export interface Worker {
|
|
|
11744
10866
|
* Emitted when this dedicated [WebWorker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) is
|
|
11745
10867
|
* terminated.
|
|
11746
10868
|
*/
|
|
11747
|
-
waitForEvent(event: 'close', optionsOrPredicate?: { predicate?: (worker: Worker) => boolean | Promise<boolean>, timeout?: number
|
|
10869
|
+
waitForEvent(event: 'close', optionsOrPredicate?: { predicate?: (worker: Worker) => boolean | Promise<boolean>, timeout?: number } | ((worker: Worker) => boolean | Promise<boolean>)): Promise<Worker>;
|
|
11748
10870
|
|
|
11749
10871
|
/**
|
|
11750
10872
|
* Emitted when JavaScript within the worker calls one of console API methods, e.g. `console.log` or `console.dir`.
|
|
11751
10873
|
*/
|
|
11752
|
-
waitForEvent(event: 'console', optionsOrPredicate?: { predicate?: (consoleMessage: ConsoleMessage) => boolean | Promise<boolean>, timeout?: number
|
|
10874
|
+
waitForEvent(event: 'console', optionsOrPredicate?: { predicate?: (consoleMessage: ConsoleMessage) => boolean | Promise<boolean>, timeout?: number } | ((consoleMessage: ConsoleMessage) => boolean | Promise<boolean>)): Promise<ConsoleMessage>;
|
|
11753
10875
|
|
|
11754
10876
|
}
|
|
11755
10877
|
|
|
11756
10878
|
/**
|
|
11757
10879
|
* JSHandle represents an in-page JavaScript object. JSHandles can be created with the
|
|
11758
|
-
* [page.evaluateHandle(pageFunction[, arg
|
|
11759
|
-
* method.
|
|
10880
|
+
* [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate-handle) method.
|
|
11760
10881
|
*
|
|
11761
10882
|
* ```js
|
|
11762
10883
|
* const windowHandle = await page.evaluateHandle(() => window);
|
|
@@ -11769,8 +10890,8 @@ export interface Worker {
|
|
|
11769
10890
|
*
|
|
11770
10891
|
* JSHandle instances can be used as an argument in
|
|
11771
10892
|
* [page.$eval(selector, pageFunction[, arg, options])](https://playwright.dev/docs/api/class-page#page-eval-on-selector),
|
|
11772
|
-
* [page.evaluate(pageFunction[, arg
|
|
11773
|
-
* [page.evaluateHandle(pageFunction[, arg
|
|
10893
|
+
* [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate) and
|
|
10894
|
+
* [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate-handle)
|
|
11774
10895
|
* methods.
|
|
11775
10896
|
*/
|
|
11776
10897
|
export interface JSHandle<T = any> {
|
|
@@ -11794,9 +10915,8 @@ export interface JSHandle<T = any> {
|
|
|
11794
10915
|
* @param pageFunction Function to be evaluated in the page context.
|
|
11795
10916
|
* @param arg Optional argument to pass to
|
|
11796
10917
|
* [`pageFunction`](https://playwright.dev/docs/api/class-elementhandle#element-handle-evaluate-option-expression).
|
|
11797
|
-
* @param options
|
|
11798
10918
|
*/
|
|
11799
|
-
evaluate<R, Arg, O extends T = T>(pageFunction: PageFunctionOn<O, Arg, R>, arg: Arg
|
|
10919
|
+
evaluate<R, Arg, O extends T = T>(pageFunction: PageFunctionOn<O, Arg, R>, arg: Arg): Promise<R>;
|
|
11800
10920
|
/**
|
|
11801
10921
|
* Returns the return value of
|
|
11802
10922
|
* [`pageFunction`](https://playwright.dev/docs/api/class-elementhandle#element-handle-evaluate-option-expression).
|
|
@@ -11817,9 +10937,8 @@ export interface JSHandle<T = any> {
|
|
|
11817
10937
|
* @param pageFunction Function to be evaluated in the page context.
|
|
11818
10938
|
* @param arg Optional argument to pass to
|
|
11819
10939
|
* [`pageFunction`](https://playwright.dev/docs/api/class-elementhandle#element-handle-evaluate-option-expression).
|
|
11820
|
-
* @param options
|
|
11821
10940
|
*/
|
|
11822
|
-
evaluate<R, O extends T = T>(pageFunction: PageFunctionOn<O, void, R>, arg?: any
|
|
10941
|
+
evaluate<R, O extends T = T>(pageFunction: PageFunctionOn<O, void, R>, arg?: any): Promise<R>;
|
|
11823
10942
|
|
|
11824
10943
|
/**
|
|
11825
10944
|
* Returns the return value of
|
|
@@ -11835,15 +10954,13 @@ export interface JSHandle<T = any> {
|
|
|
11835
10954
|
* If the function passed to the `jsHandle.evaluateHandle` returns a [Promise], then `jsHandle.evaluateHandle` would
|
|
11836
10955
|
* wait for the promise to resolve and return its value.
|
|
11837
10956
|
*
|
|
11838
|
-
* See
|
|
11839
|
-
*
|
|
11840
|
-
* for more details.
|
|
10957
|
+
* See [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate-handle) for
|
|
10958
|
+
* more details.
|
|
11841
10959
|
* @param pageFunction Function to be evaluated in the page context.
|
|
11842
10960
|
* @param arg Optional argument to pass to
|
|
11843
10961
|
* [`pageFunction`](https://playwright.dev/docs/api/class-elementhandle#element-handle-evaluate-handle-option-expression).
|
|
11844
|
-
* @param options
|
|
11845
10962
|
*/
|
|
11846
|
-
evaluateHandle<R, Arg, O extends T = T>(pageFunction: PageFunctionOn<O, Arg, R>, arg: Arg
|
|
10963
|
+
evaluateHandle<R, Arg, O extends T = T>(pageFunction: PageFunctionOn<O, Arg, R>, arg: Arg): Promise<SmartHandle<R>>;
|
|
11847
10964
|
/**
|
|
11848
10965
|
* Returns the return value of
|
|
11849
10966
|
* [`pageFunction`](https://playwright.dev/docs/api/class-elementhandle#element-handle-evaluate-handle-option-expression)
|
|
@@ -11858,15 +10975,13 @@ export interface JSHandle<T = any> {
|
|
|
11858
10975
|
* If the function passed to the `jsHandle.evaluateHandle` returns a [Promise], then `jsHandle.evaluateHandle` would
|
|
11859
10976
|
* wait for the promise to resolve and return its value.
|
|
11860
10977
|
*
|
|
11861
|
-
* See
|
|
11862
|
-
*
|
|
11863
|
-
* for more details.
|
|
10978
|
+
* See [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate-handle) for
|
|
10979
|
+
* more details.
|
|
11864
10980
|
* @param pageFunction Function to be evaluated in the page context.
|
|
11865
10981
|
* @param arg Optional argument to pass to
|
|
11866
10982
|
* [`pageFunction`](https://playwright.dev/docs/api/class-elementhandle#element-handle-evaluate-handle-option-expression).
|
|
11867
|
-
* @param options
|
|
11868
10983
|
*/
|
|
11869
|
-
evaluateHandle<R, O extends T = T>(pageFunction: PageFunctionOn<O, void, R>, arg?: any
|
|
10984
|
+
evaluateHandle<R, O extends T = T>(pageFunction: PageFunctionOn<O, void, R>, arg?: any): Promise<SmartHandle<R>>;
|
|
11870
10985
|
|
|
11871
10986
|
/**
|
|
11872
10987
|
* Returns a JSON representation of the object. If the object has a `toJSON` function, it **will not be called**.
|
|
@@ -11931,8 +11046,7 @@ export interface JSHandle<T = any> {
|
|
|
11931
11046
|
*
|
|
11932
11047
|
* ElementHandle instances can be used as an argument in
|
|
11933
11048
|
* [page.$eval(selector, pageFunction[, arg, options])](https://playwright.dev/docs/api/class-page#page-eval-on-selector)
|
|
11934
|
-
* and [page.evaluate(pageFunction[, arg
|
|
11935
|
-
* methods.
|
|
11049
|
+
* and [page.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate) methods.
|
|
11936
11050
|
*
|
|
11937
11051
|
* The difference between the [Locator](https://playwright.dev/docs/api/class-locator) and ElementHandle is that the
|
|
11938
11052
|
* ElementHandle points to a particular element, while [Locator](https://playwright.dev/docs/api/class-locator)
|
|
@@ -12533,25 +11647,6 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
|
|
|
12533
11647
|
y: number;
|
|
12534
11648
|
};
|
|
12535
11649
|
|
|
12536
|
-
/**
|
|
12537
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
12538
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
12539
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
12540
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
12541
|
-
*/
|
|
12542
|
-
scroll?: "auto"|"none";
|
|
12543
|
-
|
|
12544
|
-
/**
|
|
12545
|
-
* Allows to cancel the operation using an
|
|
12546
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
12547
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
12548
|
-
* which can be changed using
|
|
12549
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
12550
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
12551
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
12552
|
-
*/
|
|
12553
|
-
signal?: AbortSignal;
|
|
12554
|
-
|
|
12555
11650
|
/**
|
|
12556
11651
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
12557
11652
|
* option in the config, or by using the
|
|
@@ -12636,25 +11731,6 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
|
|
|
12636
11731
|
y: number;
|
|
12637
11732
|
};
|
|
12638
11733
|
|
|
12639
|
-
/**
|
|
12640
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
12641
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
12642
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
12643
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
12644
|
-
*/
|
|
12645
|
-
scroll?: "auto"|"none";
|
|
12646
|
-
|
|
12647
|
-
/**
|
|
12648
|
-
* Allows to cancel the operation using an
|
|
12649
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
12650
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
12651
|
-
* which can be changed using
|
|
12652
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
12653
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
12654
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
12655
|
-
*/
|
|
12656
|
-
signal?: AbortSignal;
|
|
12657
|
-
|
|
12658
11734
|
/**
|
|
12659
11735
|
* Defaults to 1. Sends `n` interpolated `mousemove` events to represent travel between Playwright's current cursor
|
|
12660
11736
|
* position and the provided destination. When set to 1, emits a single `mousemove` event at the destination location.
|
|
@@ -12744,25 +11820,6 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
|
|
|
12744
11820
|
y: number;
|
|
12745
11821
|
};
|
|
12746
11822
|
|
|
12747
|
-
/**
|
|
12748
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
12749
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
12750
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
12751
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
12752
|
-
*/
|
|
12753
|
-
scroll?: "auto"|"none";
|
|
12754
|
-
|
|
12755
|
-
/**
|
|
12756
|
-
* Allows to cancel the operation using an
|
|
12757
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
12758
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
12759
|
-
* which can be changed using
|
|
12760
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
12761
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
12762
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
12763
|
-
*/
|
|
12764
|
-
signal?: AbortSignal;
|
|
12765
|
-
|
|
12766
11823
|
/**
|
|
12767
11824
|
* Defaults to 1. Sends `n` interpolated `mousemove` events to represent travel between Playwright's current cursor
|
|
12768
11825
|
* position and the provided destination. When set to 1, emits a single `mousemove` event at the destination location.
|
|
@@ -12861,17 +11918,6 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
|
|
|
12861
11918
|
*/
|
|
12862
11919
|
noWaitAfter?: boolean;
|
|
12863
11920
|
|
|
12864
|
-
/**
|
|
12865
|
-
* Allows to cancel the operation using an
|
|
12866
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
12867
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
12868
|
-
* which can be changed using
|
|
12869
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
12870
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
12871
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
12872
|
-
*/
|
|
12873
|
-
signal?: AbortSignal;
|
|
12874
|
-
|
|
12875
11921
|
/**
|
|
12876
11922
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
12877
11923
|
* option in the config, or by using the
|
|
@@ -12948,25 +11994,6 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
|
|
|
12948
11994
|
y: number;
|
|
12949
11995
|
};
|
|
12950
11996
|
|
|
12951
|
-
/**
|
|
12952
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
12953
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
12954
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
12955
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
12956
|
-
*/
|
|
12957
|
-
scroll?: "auto"|"none";
|
|
12958
|
-
|
|
12959
|
-
/**
|
|
12960
|
-
* Allows to cancel the operation using an
|
|
12961
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
12962
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
12963
|
-
* which can be changed using
|
|
12964
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
12965
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
12966
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
12967
|
-
*/
|
|
12968
|
-
signal?: AbortSignal;
|
|
12969
|
-
|
|
12970
11997
|
/**
|
|
12971
11998
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
12972
11999
|
* option in the config, or by using the
|
|
@@ -13012,7 +12039,10 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
|
|
|
13012
12039
|
*/
|
|
13013
12040
|
inputValue(options?: {
|
|
13014
12041
|
/**
|
|
13015
|
-
*
|
|
12042
|
+
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
12043
|
+
* option in the config, or by using the
|
|
12044
|
+
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
12045
|
+
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
|
|
13016
12046
|
*/
|
|
13017
12047
|
timeout?: number;
|
|
13018
12048
|
}): Promise<string>;
|
|
@@ -13118,17 +12148,6 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
|
|
|
13118
12148
|
*/
|
|
13119
12149
|
noWaitAfter?: boolean;
|
|
13120
12150
|
|
|
13121
|
-
/**
|
|
13122
|
-
* Allows to cancel the operation using an
|
|
13123
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
13124
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
13125
|
-
* which can be changed using
|
|
13126
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
13127
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
13128
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
13129
|
-
*/
|
|
13130
|
-
signal?: AbortSignal;
|
|
13131
|
-
|
|
13132
12151
|
/**
|
|
13133
12152
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
13134
12153
|
* option in the config, or by using the
|
|
@@ -13199,8 +12218,7 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
|
|
|
13199
12218
|
path?: string;
|
|
13200
12219
|
|
|
13201
12220
|
/**
|
|
13202
|
-
* The quality of the image, between 0-100. Not applicable to `png` images.
|
|
13203
|
-
* `webp`, a quality of `100` (the default) produces a lossless image, while lower values use lossy compression.
|
|
12221
|
+
* The quality of the image, between 0-100. Not applicable to `png` images.
|
|
13204
12222
|
*/
|
|
13205
12223
|
quality?: number;
|
|
13206
12224
|
|
|
@@ -13213,17 +12231,6 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
|
|
|
13213
12231
|
*/
|
|
13214
12232
|
scale?: "css"|"device";
|
|
13215
12233
|
|
|
13216
|
-
/**
|
|
13217
|
-
* Allows to cancel the operation using an
|
|
13218
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
13219
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
13220
|
-
* which can be changed using
|
|
13221
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
13222
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
13223
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
13224
|
-
*/
|
|
13225
|
-
signal?: AbortSignal;
|
|
13226
|
-
|
|
13227
12234
|
/**
|
|
13228
12235
|
* Text of the stylesheet to apply while making the screenshot. This is where you can hide dynamic elements, make
|
|
13229
12236
|
* elements invisible or change their properties to help you creating repeatable screenshots. This stylesheet pierces
|
|
@@ -13242,7 +12249,7 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
|
|
|
13242
12249
|
/**
|
|
13243
12250
|
* Specify screenshot type, defaults to `png`.
|
|
13244
12251
|
*/
|
|
13245
|
-
type?: "png"|"jpeg"
|
|
12252
|
+
type?: "png"|"jpeg";
|
|
13246
12253
|
}): Promise<Buffer>;
|
|
13247
12254
|
|
|
13248
12255
|
/**
|
|
@@ -13261,17 +12268,6 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
|
|
|
13261
12268
|
* @param options
|
|
13262
12269
|
*/
|
|
13263
12270
|
scrollIntoViewIfNeeded(options?: {
|
|
13264
|
-
/**
|
|
13265
|
-
* Allows to cancel the operation using an
|
|
13266
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
13267
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
13268
|
-
* which can be changed using
|
|
13269
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
13270
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
13271
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
13272
|
-
*/
|
|
13273
|
-
signal?: AbortSignal;
|
|
13274
|
-
|
|
13275
12271
|
/**
|
|
13276
12272
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
13277
12273
|
* option in the config, or by using the
|
|
@@ -13358,17 +12354,6 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
|
|
|
13358
12354
|
*/
|
|
13359
12355
|
noWaitAfter?: boolean;
|
|
13360
12356
|
|
|
13361
|
-
/**
|
|
13362
|
-
* Allows to cancel the operation using an
|
|
13363
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
13364
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
13365
|
-
* which can be changed using
|
|
13366
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
13367
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
13368
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
13369
|
-
*/
|
|
13370
|
-
signal?: AbortSignal;
|
|
13371
|
-
|
|
13372
12357
|
/**
|
|
13373
12358
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
13374
12359
|
* option in the config, or by using the
|
|
@@ -13397,17 +12382,6 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
|
|
|
13397
12382
|
*/
|
|
13398
12383
|
force?: boolean;
|
|
13399
12384
|
|
|
13400
|
-
/**
|
|
13401
|
-
* Allows to cancel the operation using an
|
|
13402
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
13403
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
13404
|
-
* which can be changed using
|
|
13405
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
13406
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
13407
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
13408
|
-
*/
|
|
13409
|
-
signal?: AbortSignal;
|
|
13410
|
-
|
|
13411
12385
|
/**
|
|
13412
12386
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
13413
12387
|
* option in the config, or by using the
|
|
@@ -13462,25 +12436,6 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
|
|
|
13462
12436
|
y: number;
|
|
13463
12437
|
};
|
|
13464
12438
|
|
|
13465
|
-
/**
|
|
13466
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
13467
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
13468
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
13469
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
13470
|
-
*/
|
|
13471
|
-
scroll?: "auto"|"none";
|
|
13472
|
-
|
|
13473
|
-
/**
|
|
13474
|
-
* Allows to cancel the operation using an
|
|
13475
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
13476
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
13477
|
-
* which can be changed using
|
|
13478
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
13479
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
13480
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
13481
|
-
*/
|
|
13482
|
-
signal?: AbortSignal;
|
|
13483
|
-
|
|
13484
12439
|
/**
|
|
13485
12440
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
13486
12441
|
* option in the config, or by using the
|
|
@@ -13549,17 +12504,6 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
|
|
|
13549
12504
|
*/
|
|
13550
12505
|
noWaitAfter?: boolean;
|
|
13551
12506
|
|
|
13552
|
-
/**
|
|
13553
|
-
* Allows to cancel the operation using an
|
|
13554
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
13555
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
13556
|
-
* which can be changed using
|
|
13557
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
13558
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
13559
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
13560
|
-
*/
|
|
13561
|
-
signal?: AbortSignal;
|
|
13562
|
-
|
|
13563
12507
|
/**
|
|
13564
12508
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
13565
12509
|
* option in the config, or by using the
|
|
@@ -13620,25 +12564,6 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
|
|
|
13620
12564
|
y: number;
|
|
13621
12565
|
};
|
|
13622
12566
|
|
|
13623
|
-
/**
|
|
13624
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
13625
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
13626
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
13627
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
13628
|
-
*/
|
|
13629
|
-
scroll?: "auto"|"none";
|
|
13630
|
-
|
|
13631
|
-
/**
|
|
13632
|
-
* Allows to cancel the operation using an
|
|
13633
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
13634
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
13635
|
-
* which can be changed using
|
|
13636
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
13637
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
13638
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
13639
|
-
*/
|
|
13640
|
-
signal?: AbortSignal;
|
|
13641
|
-
|
|
13642
12567
|
/**
|
|
13643
12568
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
13644
12569
|
* option in the config, or by using the
|
|
@@ -13690,17 +12615,6 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
|
|
|
13690
12615
|
*/
|
|
13691
12616
|
noWaitAfter?: boolean;
|
|
13692
12617
|
|
|
13693
|
-
/**
|
|
13694
|
-
* Allows to cancel the operation using an
|
|
13695
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
13696
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
13697
|
-
* which can be changed using
|
|
13698
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
13699
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
13700
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
13701
|
-
*/
|
|
13702
|
-
signal?: AbortSignal;
|
|
13703
|
-
|
|
13704
12618
|
/**
|
|
13705
12619
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
13706
12620
|
* option in the config, or by using the
|
|
@@ -13754,25 +12668,6 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
|
|
|
13754
12668
|
y: number;
|
|
13755
12669
|
};
|
|
13756
12670
|
|
|
13757
|
-
/**
|
|
13758
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
13759
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
13760
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
13761
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
13762
|
-
*/
|
|
13763
|
-
scroll?: "auto"|"none";
|
|
13764
|
-
|
|
13765
|
-
/**
|
|
13766
|
-
* Allows to cancel the operation using an
|
|
13767
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
13768
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
13769
|
-
* which can be changed using
|
|
13770
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
13771
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
13772
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
13773
|
-
*/
|
|
13774
|
-
signal?: AbortSignal;
|
|
13775
|
-
|
|
13776
12671
|
/**
|
|
13777
12672
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
13778
12673
|
* option in the config, or by using the
|
|
@@ -13812,17 +12707,6 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
|
|
|
13812
12707
|
* @param options
|
|
13813
12708
|
*/
|
|
13814
12709
|
waitForElementState(state: "visible"|"hidden"|"stable"|"enabled"|"disabled"|"editable", options?: {
|
|
13815
|
-
/**
|
|
13816
|
-
* Allows to cancel the operation using an
|
|
13817
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
13818
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
13819
|
-
* which can be changed using
|
|
13820
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
13821
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
13822
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
13823
|
-
*/
|
|
13824
|
-
signal?: AbortSignal;
|
|
13825
|
-
|
|
13826
12710
|
/**
|
|
13827
12711
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
13828
12712
|
* option in the config, or by using the
|
|
@@ -13874,7 +12758,45 @@ export interface Locator {
|
|
|
13874
12758
|
* [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-evaluate-option-expression).
|
|
13875
12759
|
* @param options
|
|
13876
12760
|
*/
|
|
13877
|
-
evaluate<R, Arg, E extends SVGElement | HTMLElement = SVGElement | HTMLElement>(pageFunction: PageFunctionOn<E, Arg, R>, arg
|
|
12761
|
+
evaluate<R, Arg, E extends SVGElement | HTMLElement = SVGElement | HTMLElement>(pageFunction: PageFunctionOn<E, Arg, R>, arg: Arg, options?: {
|
|
12762
|
+
timeout?: number;
|
|
12763
|
+
}): Promise<R>;
|
|
12764
|
+
/**
|
|
12765
|
+
* Execute JavaScript code in the page, taking the matching element as an argument.
|
|
12766
|
+
*
|
|
12767
|
+
* **Details**
|
|
12768
|
+
*
|
|
12769
|
+
* Returns the return value of
|
|
12770
|
+
* [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-evaluate-option-expression), called with the
|
|
12771
|
+
* matching element as a first argument, and
|
|
12772
|
+
* [`arg`](https://playwright.dev/docs/api/class-locator#locator-evaluate-option-arg) as a second argument.
|
|
12773
|
+
*
|
|
12774
|
+
* If [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-evaluate-option-expression) returns a
|
|
12775
|
+
* [Promise], this method will wait for the promise to resolve and return its value.
|
|
12776
|
+
*
|
|
12777
|
+
* If [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-evaluate-option-expression) throws or
|
|
12778
|
+
* rejects, this method throws.
|
|
12779
|
+
*
|
|
12780
|
+
* **Usage**
|
|
12781
|
+
*
|
|
12782
|
+
* Passing argument to
|
|
12783
|
+
* [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-evaluate-option-expression):
|
|
12784
|
+
*
|
|
12785
|
+
* ```js
|
|
12786
|
+
* const result = await page.getByTestId('myId').evaluate((element, [x, y]) => {
|
|
12787
|
+
* return element.textContent + ' ' + x * y;
|
|
12788
|
+
* }, [7, 8]);
|
|
12789
|
+
* console.log(result); // prints "myId text 56"
|
|
12790
|
+
* ```
|
|
12791
|
+
*
|
|
12792
|
+
* @param pageFunction Function to be evaluated in the page context.
|
|
12793
|
+
* @param arg Optional argument to pass to
|
|
12794
|
+
* [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-evaluate-option-expression).
|
|
12795
|
+
* @param options
|
|
12796
|
+
*/
|
|
12797
|
+
evaluate<R, E extends SVGElement | HTMLElement = SVGElement | HTMLElement>(pageFunction: PageFunctionOn<E, void, R>, options?: {
|
|
12798
|
+
timeout?: number;
|
|
12799
|
+
}): Promise<R>;
|
|
13878
12800
|
/**
|
|
13879
12801
|
* Execute JavaScript code in the page, taking the matching element as an argument, and return a
|
|
13880
12802
|
* [JSHandle](https://playwright.dev/docs/api/class-jshandle) with the result.
|
|
@@ -13900,15 +12822,47 @@ export interface Locator {
|
|
|
13900
12822
|
* If [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-evaluate-handle-option-expression) throws
|
|
13901
12823
|
* or rejects, this method throws.
|
|
13902
12824
|
*
|
|
13903
|
-
* See
|
|
13904
|
-
*
|
|
13905
|
-
*
|
|
12825
|
+
* See [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate-handle) for
|
|
12826
|
+
* more details.
|
|
12827
|
+
* @param pageFunction Function to be evaluated in the page context.
|
|
12828
|
+
* @param arg Optional argument to pass to
|
|
12829
|
+
* [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-evaluate-handle-option-expression).
|
|
12830
|
+
* @param options
|
|
12831
|
+
*/
|
|
12832
|
+
evaluateHandle<R, Arg, E extends SVGElement | HTMLElement = SVGElement | HTMLElement>(pageFunction: PageFunctionOn<E, Arg, R>, arg: Arg): Promise<SmartHandle<R>>;
|
|
12833
|
+
/**
|
|
12834
|
+
* Execute JavaScript code in the page, taking the matching element as an argument, and return a
|
|
12835
|
+
* [JSHandle](https://playwright.dev/docs/api/class-jshandle) with the result.
|
|
12836
|
+
*
|
|
12837
|
+
* **Details**
|
|
12838
|
+
*
|
|
12839
|
+
* Returns the return value of
|
|
12840
|
+
* [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-evaluate-handle-option-expression) as
|
|
12841
|
+
* a[JSHandle](https://playwright.dev/docs/api/class-jshandle), called with the matching element as a first argument,
|
|
12842
|
+
* and [`arg`](https://playwright.dev/docs/api/class-locator#locator-evaluate-handle-option-arg) as a second argument.
|
|
12843
|
+
*
|
|
12844
|
+
* The only difference between
|
|
12845
|
+
* [locator.evaluate(pageFunction[, arg, options])](https://playwright.dev/docs/api/class-locator#locator-evaluate)
|
|
12846
|
+
* and
|
|
12847
|
+
* [locator.evaluateHandle(pageFunction[, arg, options])](https://playwright.dev/docs/api/class-locator#locator-evaluate-handle)
|
|
12848
|
+
* is that
|
|
12849
|
+
* [locator.evaluateHandle(pageFunction[, arg, options])](https://playwright.dev/docs/api/class-locator#locator-evaluate-handle)
|
|
12850
|
+
* returns [JSHandle](https://playwright.dev/docs/api/class-jshandle).
|
|
12851
|
+
*
|
|
12852
|
+
* If [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-evaluate-handle-option-expression)
|
|
12853
|
+
* returns a [Promise], this method will wait for the promise to resolve and return its value.
|
|
12854
|
+
*
|
|
12855
|
+
* If [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-evaluate-handle-option-expression) throws
|
|
12856
|
+
* or rejects, this method throws.
|
|
12857
|
+
*
|
|
12858
|
+
* See [page.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-page#page-evaluate-handle) for
|
|
12859
|
+
* more details.
|
|
13906
12860
|
* @param pageFunction Function to be evaluated in the page context.
|
|
13907
12861
|
* @param arg Optional argument to pass to
|
|
13908
12862
|
* [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-evaluate-handle-option-expression).
|
|
13909
12863
|
* @param options
|
|
13910
12864
|
*/
|
|
13911
|
-
evaluateHandle<R,
|
|
12865
|
+
evaluateHandle<R, E extends SVGElement | HTMLElement = SVGElement | HTMLElement>(pageFunction: PageFunctionOn<E, void, R>): Promise<SmartHandle<R>>;
|
|
13912
12866
|
/**
|
|
13913
12867
|
* Execute JavaScript code in the page, taking all matching elements as an argument.
|
|
13914
12868
|
*
|
|
@@ -13936,47 +12890,35 @@ export interface Locator {
|
|
|
13936
12890
|
* @param arg Optional argument to pass to
|
|
13937
12891
|
* [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-evaluate-all-option-expression).
|
|
13938
12892
|
*/
|
|
13939
|
-
evaluateAll<R, Arg, E extends SVGElement | HTMLElement = SVGElement | HTMLElement>(pageFunction: PageFunctionOn<E[], Arg, R>, arg
|
|
12893
|
+
evaluateAll<R, Arg, E extends SVGElement | HTMLElement = SVGElement | HTMLElement>(pageFunction: PageFunctionOn<E[], Arg, R>, arg: Arg): Promise<R>;
|
|
13940
12894
|
/**
|
|
13941
|
-
*
|
|
13942
|
-
* [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-wait-for-function-option-expression) returns
|
|
13943
|
-
* a truthy value, called with the matching element as a first argument, and
|
|
13944
|
-
* [`arg`](https://playwright.dev/docs/api/class-locator#locator-wait-for-function-option-arg) as a second argument.
|
|
13945
|
-
*
|
|
13946
|
-
* This is a generic way to wait for an element to reach a custom condition without asserting it. The locator is
|
|
13947
|
-
* re-resolved on each retry, so it tolerates the element being re-rendered while waiting.
|
|
13948
|
-
*
|
|
13949
|
-
* If [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-wait-for-function-option-expression)
|
|
13950
|
-
* returns a [Promise], this method will wait for the promise to resolve before checking its value.
|
|
12895
|
+
* Execute JavaScript code in the page, taking all matching elements as an argument.
|
|
13951
12896
|
*
|
|
13952
|
-
*
|
|
13953
|
-
* throws or rejects, this method throws.
|
|
12897
|
+
* **Details**
|
|
13954
12898
|
*
|
|
13955
|
-
*
|
|
12899
|
+
* Returns the return value of
|
|
12900
|
+
* [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-evaluate-all-option-expression), called with
|
|
12901
|
+
* an array of all matching elements as a first argument, and
|
|
12902
|
+
* [`arg`](https://playwright.dev/docs/api/class-locator#locator-evaluate-all-option-arg) as a second argument.
|
|
13956
12903
|
*
|
|
13957
|
-
*
|
|
12904
|
+
* If [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-evaluate-all-option-expression) returns a
|
|
12905
|
+
* [Promise], this method will wait for the promise to resolve and return its value.
|
|
13958
12906
|
*
|
|
13959
|
-
*
|
|
13960
|
-
*
|
|
13961
|
-
* await toggle.click();
|
|
13962
|
-
* await toggle.waitForFunction(element => element.hasAttribute('aria-expanded'));
|
|
13963
|
-
* ```
|
|
12907
|
+
* If [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-evaluate-all-option-expression) throws or
|
|
12908
|
+
* rejects, this method throws.
|
|
13964
12909
|
*
|
|
13965
|
-
*
|
|
13966
|
-
* [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-wait-for-function-option-expression):
|
|
12910
|
+
* **Usage**
|
|
13967
12911
|
*
|
|
13968
12912
|
* ```js
|
|
13969
|
-
*
|
|
13970
|
-
*
|
|
13971
|
-
* }, 'Ready');
|
|
12913
|
+
* const locator = page.locator('div');
|
|
12914
|
+
* const moreThanTen = await locator.evaluateAll((divs, min) => divs.length > min, 10);
|
|
13972
12915
|
* ```
|
|
13973
12916
|
*
|
|
13974
12917
|
* @param pageFunction Function to be evaluated in the page context.
|
|
13975
12918
|
* @param arg Optional argument to pass to
|
|
13976
|
-
* [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-
|
|
13977
|
-
* @param options
|
|
12919
|
+
* [`pageFunction`](https://playwright.dev/docs/api/class-locator#locator-evaluate-all-option-expression).
|
|
13978
12920
|
*/
|
|
13979
|
-
|
|
12921
|
+
evaluateAll<R, E extends SVGElement | HTMLElement = SVGElement | HTMLElement>(pageFunction: PageFunctionOn<E[], void, R>): Promise<R>;
|
|
13980
12922
|
/**
|
|
13981
12923
|
* **NOTE** Always prefer using [Locator](https://playwright.dev/docs/api/class-locator)s and web assertions over
|
|
13982
12924
|
* [ElementHandle](https://playwright.dev/docs/api/class-elementhandle)s because latter are inherently racy.
|
|
@@ -13985,13 +12927,17 @@ export interface Locator {
|
|
|
13985
12927
|
* multiple elements match the locator, throws.
|
|
13986
12928
|
* @param options
|
|
13987
12929
|
*/
|
|
13988
|
-
elementHandle(options?: {
|
|
12930
|
+
elementHandle(options?: {
|
|
12931
|
+
timeout?: number;
|
|
12932
|
+
}): Promise<null|ElementHandle<SVGElement | HTMLElement>>;
|
|
13989
12933
|
/**
|
|
13990
12934
|
* Highlight the corresponding element(s) on the screen. Useful for debugging, don't commit the code that uses
|
|
13991
12935
|
* [locator.highlight([options])](https://playwright.dev/docs/api/class-locator#locator-highlight).
|
|
13992
12936
|
* @param options
|
|
13993
12937
|
*/
|
|
13994
|
-
highlight(options?: {
|
|
12938
|
+
highlight(options?: {
|
|
12939
|
+
style?: string | { [key: string]: string | number };
|
|
12940
|
+
}): Promise<Disposable>;
|
|
13995
12941
|
/**
|
|
13996
12942
|
* Returns a human-readable representation of the locator, using the
|
|
13997
12943
|
* [locator.description()](https://playwright.dev/docs/api/class-locator#locator-description) if one exists;
|
|
@@ -14137,17 +13083,6 @@ export interface Locator {
|
|
|
14137
13083
|
*/
|
|
14138
13084
|
mode?: "ai"|"default";
|
|
14139
13085
|
|
|
14140
|
-
/**
|
|
14141
|
-
* Allows to cancel the operation using an
|
|
14142
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
14143
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
14144
|
-
* which can be changed using
|
|
14145
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
14146
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
14147
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
14148
|
-
*/
|
|
14149
|
-
signal?: AbortSignal;
|
|
14150
|
-
|
|
14151
13086
|
/**
|
|
14152
13087
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
14153
13088
|
* option in the config, or by using the
|
|
@@ -14162,17 +13097,6 @@ export interface Locator {
|
|
|
14162
13097
|
* @param options
|
|
14163
13098
|
*/
|
|
14164
13099
|
blur(options?: {
|
|
14165
|
-
/**
|
|
14166
|
-
* Allows to cancel the operation using an
|
|
14167
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
14168
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
14169
|
-
* which can be changed using
|
|
14170
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
14171
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
14172
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
14173
|
-
*/
|
|
14174
|
-
signal?: AbortSignal;
|
|
14175
|
-
|
|
14176
13100
|
/**
|
|
14177
13101
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
14178
13102
|
* option in the config, or by using the
|
|
@@ -14209,17 +13133,6 @@ export interface Locator {
|
|
|
14209
13133
|
* @param options
|
|
14210
13134
|
*/
|
|
14211
13135
|
boundingBox(options?: {
|
|
14212
|
-
/**
|
|
14213
|
-
* Allows to cancel the operation using an
|
|
14214
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
14215
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
14216
|
-
* which can be changed using
|
|
14217
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
14218
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
14219
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
14220
|
-
*/
|
|
14221
|
-
signal?: AbortSignal;
|
|
14222
|
-
|
|
14223
13136
|
/**
|
|
14224
13137
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
14225
13138
|
* option in the config, or by using the
|
|
@@ -14300,25 +13213,6 @@ export interface Locator {
|
|
|
14300
13213
|
y: number;
|
|
14301
13214
|
};
|
|
14302
13215
|
|
|
14303
|
-
/**
|
|
14304
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
14305
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
14306
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
14307
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
14308
|
-
*/
|
|
14309
|
-
scroll?: "auto"|"none";
|
|
14310
|
-
|
|
14311
|
-
/**
|
|
14312
|
-
* Allows to cancel the operation using an
|
|
14313
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
14314
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
14315
|
-
* which can be changed using
|
|
14316
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
14317
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
14318
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
14319
|
-
*/
|
|
14320
|
-
signal?: AbortSignal;
|
|
14321
|
-
|
|
14322
13216
|
/**
|
|
14323
13217
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
14324
13218
|
* option in the config, or by using the
|
|
@@ -14367,17 +13261,6 @@ export interface Locator {
|
|
|
14367
13261
|
*/
|
|
14368
13262
|
noWaitAfter?: boolean;
|
|
14369
13263
|
|
|
14370
|
-
/**
|
|
14371
|
-
* Allows to cancel the operation using an
|
|
14372
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
14373
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
14374
|
-
* which can be changed using
|
|
14375
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
14376
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
14377
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
14378
|
-
*/
|
|
14379
|
-
signal?: AbortSignal;
|
|
14380
|
-
|
|
14381
13264
|
/**
|
|
14382
13265
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
14383
13266
|
* option in the config, or by using the
|
|
@@ -14472,27 +13355,8 @@ export interface Locator {
|
|
|
14472
13355
|
position?: {
|
|
14473
13356
|
x: number;
|
|
14474
13357
|
|
|
14475
|
-
y: number;
|
|
14476
|
-
};
|
|
14477
|
-
|
|
14478
|
-
/**
|
|
14479
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
14480
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
14481
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
14482
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
14483
|
-
*/
|
|
14484
|
-
scroll?: "auto"|"none";
|
|
14485
|
-
|
|
14486
|
-
/**
|
|
14487
|
-
* Allows to cancel the operation using an
|
|
14488
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
14489
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
14490
|
-
* which can be changed using
|
|
14491
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
14492
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
14493
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
14494
|
-
*/
|
|
14495
|
-
signal?: AbortSignal;
|
|
13358
|
+
y: number;
|
|
13359
|
+
};
|
|
14496
13360
|
|
|
14497
13361
|
/**
|
|
14498
13362
|
* Defaults to 1. Sends `n` interpolated `mousemove` events to represent travel between Playwright's current cursor
|
|
@@ -14617,25 +13481,6 @@ export interface Locator {
|
|
|
14617
13481
|
y: number;
|
|
14618
13482
|
};
|
|
14619
13483
|
|
|
14620
|
-
/**
|
|
14621
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
14622
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
14623
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
14624
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
14625
|
-
*/
|
|
14626
|
-
scroll?: "auto"|"none";
|
|
14627
|
-
|
|
14628
|
-
/**
|
|
14629
|
-
* Allows to cancel the operation using an
|
|
14630
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
14631
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
14632
|
-
* which can be changed using
|
|
14633
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
14634
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
14635
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
14636
|
-
*/
|
|
14637
|
-
signal?: AbortSignal;
|
|
14638
|
-
|
|
14639
13484
|
/**
|
|
14640
13485
|
* Defaults to 1. Sends `n` interpolated `mousemove` events to represent travel between Playwright's current cursor
|
|
14641
13486
|
* position and the provided destination. When set to 1, emits a single `mousemove` event at the destination location.
|
|
@@ -14740,17 +13585,6 @@ export interface Locator {
|
|
|
14740
13585
|
* @param options
|
|
14741
13586
|
*/
|
|
14742
13587
|
dispatchEvent(type: string, eventInit?: EvaluationArgument, options?: {
|
|
14743
|
-
/**
|
|
14744
|
-
* Allows to cancel the operation using an
|
|
14745
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
14746
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
14747
|
-
* which can be changed using
|
|
14748
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
14749
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
14750
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
14751
|
-
*/
|
|
14752
|
-
signal?: AbortSignal;
|
|
14753
|
-
|
|
14754
13588
|
/**
|
|
14755
13589
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
14756
13590
|
* option in the config, or by using the
|
|
@@ -14797,25 +13631,6 @@ export interface Locator {
|
|
|
14797
13631
|
*/
|
|
14798
13632
|
noWaitAfter?: boolean;
|
|
14799
13633
|
|
|
14800
|
-
/**
|
|
14801
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
14802
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
14803
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
14804
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
14805
|
-
*/
|
|
14806
|
-
scroll?: "auto"|"none";
|
|
14807
|
-
|
|
14808
|
-
/**
|
|
14809
|
-
* Allows to cancel the operation using an
|
|
14810
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
14811
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
14812
|
-
* which can be changed using
|
|
14813
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
14814
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
14815
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
14816
|
-
*/
|
|
14817
|
-
signal?: AbortSignal;
|
|
14818
|
-
|
|
14819
13634
|
/**
|
|
14820
13635
|
* Clicks on the source element at this point relative to the top-left corner of the element's padding box. If not
|
|
14821
13636
|
* specified, some visible point of the element is used.
|
|
@@ -14939,17 +13754,6 @@ export interface Locator {
|
|
|
14939
13754
|
y: number;
|
|
14940
13755
|
};
|
|
14941
13756
|
|
|
14942
|
-
/**
|
|
14943
|
-
* Allows to cancel the operation using an
|
|
14944
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
14945
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
14946
|
-
* which can be changed using
|
|
14947
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
14948
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
14949
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
14950
|
-
*/
|
|
14951
|
-
signal?: AbortSignal;
|
|
14952
|
-
|
|
14953
13757
|
/**
|
|
14954
13758
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
14955
13759
|
* option in the config, or by using the
|
|
@@ -15003,17 +13807,6 @@ export interface Locator {
|
|
|
15003
13807
|
*/
|
|
15004
13808
|
noWaitAfter?: boolean;
|
|
15005
13809
|
|
|
15006
|
-
/**
|
|
15007
|
-
* Allows to cancel the operation using an
|
|
15008
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
15009
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
15010
|
-
* which can be changed using
|
|
15011
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
15012
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
15013
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
15014
|
-
*/
|
|
15015
|
-
signal?: AbortSignal;
|
|
15016
|
-
|
|
15017
13810
|
/**
|
|
15018
13811
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
15019
13812
|
* option in the config, or by using the
|
|
@@ -15093,17 +13886,6 @@ export interface Locator {
|
|
|
15093
13886
|
* @param options
|
|
15094
13887
|
*/
|
|
15095
13888
|
focus(options?: {
|
|
15096
|
-
/**
|
|
15097
|
-
* Allows to cancel the operation using an
|
|
15098
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
15099
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
15100
|
-
* which can be changed using
|
|
15101
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
15102
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
15103
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
15104
|
-
*/
|
|
15105
|
-
signal?: AbortSignal;
|
|
15106
|
-
|
|
15107
13889
|
/**
|
|
15108
13890
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
15109
13891
|
* option in the config, or by using the
|
|
@@ -15139,17 +13921,6 @@ export interface Locator {
|
|
|
15139
13921
|
* @param options
|
|
15140
13922
|
*/
|
|
15141
13923
|
getAttribute(name: string, options?: {
|
|
15142
|
-
/**
|
|
15143
|
-
* Allows to cancel the operation using an
|
|
15144
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
15145
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
15146
|
-
* which can be changed using
|
|
15147
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
15148
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
15149
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
15150
|
-
*/
|
|
15151
|
-
signal?: AbortSignal;
|
|
15152
|
-
|
|
15153
13924
|
/**
|
|
15154
13925
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
15155
13926
|
* option in the config, or by using the
|
|
@@ -15545,25 +14316,6 @@ export interface Locator {
|
|
|
15545
14316
|
y: number;
|
|
15546
14317
|
};
|
|
15547
14318
|
|
|
15548
|
-
/**
|
|
15549
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
15550
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
15551
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
15552
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
15553
|
-
*/
|
|
15554
|
-
scroll?: "auto"|"none";
|
|
15555
|
-
|
|
15556
|
-
/**
|
|
15557
|
-
* Allows to cancel the operation using an
|
|
15558
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
15559
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
15560
|
-
* which can be changed using
|
|
15561
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
15562
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
15563
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
15564
|
-
*/
|
|
15565
|
-
signal?: AbortSignal;
|
|
15566
|
-
|
|
15567
14319
|
/**
|
|
15568
14320
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
15569
14321
|
* option in the config, or by using the
|
|
@@ -15586,17 +14338,6 @@ export interface Locator {
|
|
|
15586
14338
|
* @param options
|
|
15587
14339
|
*/
|
|
15588
14340
|
innerHTML(options?: {
|
|
15589
|
-
/**
|
|
15590
|
-
* Allows to cancel the operation using an
|
|
15591
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
15592
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
15593
|
-
* which can be changed using
|
|
15594
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
15595
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
15596
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
15597
|
-
*/
|
|
15598
|
-
signal?: AbortSignal;
|
|
15599
|
-
|
|
15600
14341
|
/**
|
|
15601
14342
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
15602
14343
|
* option in the config, or by using the
|
|
@@ -15618,17 +14359,6 @@ export interface Locator {
|
|
|
15618
14359
|
* @param options
|
|
15619
14360
|
*/
|
|
15620
14361
|
innerText(options?: {
|
|
15621
|
-
/**
|
|
15622
|
-
* Allows to cancel the operation using an
|
|
15623
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
15624
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
15625
|
-
* which can be changed using
|
|
15626
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
15627
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
15628
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
15629
|
-
*/
|
|
15630
|
-
signal?: AbortSignal;
|
|
15631
|
-
|
|
15632
14362
|
/**
|
|
15633
14363
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
15634
14364
|
* option in the config, or by using the
|
|
@@ -15660,17 +14390,6 @@ export interface Locator {
|
|
|
15660
14390
|
* @param options
|
|
15661
14391
|
*/
|
|
15662
14392
|
inputValue(options?: {
|
|
15663
|
-
/**
|
|
15664
|
-
* Allows to cancel the operation using an
|
|
15665
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
15666
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
15667
|
-
* which can be changed using
|
|
15668
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
15669
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
15670
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
15671
|
-
*/
|
|
15672
|
-
signal?: AbortSignal;
|
|
15673
|
-
|
|
15674
14393
|
/**
|
|
15675
14394
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
15676
14395
|
* option in the config, or by using the
|
|
@@ -15696,17 +14415,6 @@ export interface Locator {
|
|
|
15696
14415
|
* @param options
|
|
15697
14416
|
*/
|
|
15698
14417
|
isChecked(options?: {
|
|
15699
|
-
/**
|
|
15700
|
-
* Allows to cancel the operation using an
|
|
15701
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
15702
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
15703
|
-
* which can be changed using
|
|
15704
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
15705
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
15706
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
15707
|
-
*/
|
|
15708
|
-
signal?: AbortSignal;
|
|
15709
|
-
|
|
15710
14418
|
/**
|
|
15711
14419
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
15712
14420
|
* option in the config, or by using the
|
|
@@ -15732,17 +14440,6 @@ export interface Locator {
|
|
|
15732
14440
|
* @param options
|
|
15733
14441
|
*/
|
|
15734
14442
|
isDisabled(options?: {
|
|
15735
|
-
/**
|
|
15736
|
-
* Allows to cancel the operation using an
|
|
15737
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
15738
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
15739
|
-
* which can be changed using
|
|
15740
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
15741
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
15742
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
15743
|
-
*/
|
|
15744
|
-
signal?: AbortSignal;
|
|
15745
|
-
|
|
15746
14443
|
/**
|
|
15747
14444
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
15748
14445
|
* option in the config, or by using the
|
|
@@ -15770,17 +14467,6 @@ export interface Locator {
|
|
|
15770
14467
|
* @param options
|
|
15771
14468
|
*/
|
|
15772
14469
|
isEditable(options?: {
|
|
15773
|
-
/**
|
|
15774
|
-
* Allows to cancel the operation using an
|
|
15775
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
15776
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
15777
|
-
* which can be changed using
|
|
15778
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
15779
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
15780
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
15781
|
-
*/
|
|
15782
|
-
signal?: AbortSignal;
|
|
15783
|
-
|
|
15784
14470
|
/**
|
|
15785
14471
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
15786
14472
|
* option in the config, or by using the
|
|
@@ -15806,17 +14492,6 @@ export interface Locator {
|
|
|
15806
14492
|
* @param options
|
|
15807
14493
|
*/
|
|
15808
14494
|
isEnabled(options?: {
|
|
15809
|
-
/**
|
|
15810
|
-
* Allows to cancel the operation using an
|
|
15811
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
15812
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
15813
|
-
* which can be changed using
|
|
15814
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
15815
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
15816
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
15817
|
-
*/
|
|
15818
|
-
signal?: AbortSignal;
|
|
15819
|
-
|
|
15820
14495
|
/**
|
|
15821
14496
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
15822
14497
|
* option in the config, or by using the
|
|
@@ -16039,17 +14714,6 @@ export interface Locator {
|
|
|
16039
14714
|
*/
|
|
16040
14715
|
noWaitAfter?: boolean;
|
|
16041
14716
|
|
|
16042
|
-
/**
|
|
16043
|
-
* Allows to cancel the operation using an
|
|
16044
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
16045
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
16046
|
-
* which can be changed using
|
|
16047
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
16048
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
16049
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
16050
|
-
*/
|
|
16051
|
-
signal?: AbortSignal;
|
|
16052
|
-
|
|
16053
14717
|
/**
|
|
16054
14718
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
16055
14719
|
* option in the config, or by using the
|
|
@@ -16100,17 +14764,6 @@ export interface Locator {
|
|
|
16100
14764
|
*/
|
|
16101
14765
|
noWaitAfter?: boolean;
|
|
16102
14766
|
|
|
16103
|
-
/**
|
|
16104
|
-
* Allows to cancel the operation using an
|
|
16105
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
16106
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
16107
|
-
* which can be changed using
|
|
16108
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
16109
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
16110
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
16111
|
-
*/
|
|
16112
|
-
signal?: AbortSignal;
|
|
16113
|
-
|
|
16114
14767
|
/**
|
|
16115
14768
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
16116
14769
|
* option in the config, or by using the
|
|
@@ -16158,17 +14811,6 @@ export interface Locator {
|
|
|
16158
14811
|
* @param options
|
|
16159
14812
|
*/
|
|
16160
14813
|
scrollIntoViewIfNeeded(options?: {
|
|
16161
|
-
/**
|
|
16162
|
-
* Allows to cancel the operation using an
|
|
16163
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
16164
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
16165
|
-
* which can be changed using
|
|
16166
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
16167
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
16168
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
16169
|
-
*/
|
|
16170
|
-
signal?: AbortSignal;
|
|
16171
|
-
|
|
16172
14814
|
/**
|
|
16173
14815
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
16174
14816
|
* option in the config, or by using the
|
|
@@ -16263,17 +14905,6 @@ export interface Locator {
|
|
|
16263
14905
|
*/
|
|
16264
14906
|
noWaitAfter?: boolean;
|
|
16265
14907
|
|
|
16266
|
-
/**
|
|
16267
|
-
* Allows to cancel the operation using an
|
|
16268
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
16269
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
16270
|
-
* which can be changed using
|
|
16271
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
16272
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
16273
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
16274
|
-
*/
|
|
16275
|
-
signal?: AbortSignal;
|
|
16276
|
-
|
|
16277
14908
|
/**
|
|
16278
14909
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
16279
14910
|
* option in the config, or by using the
|
|
@@ -16298,17 +14929,6 @@ export interface Locator {
|
|
|
16298
14929
|
*/
|
|
16299
14930
|
force?: boolean;
|
|
16300
14931
|
|
|
16301
|
-
/**
|
|
16302
|
-
* Allows to cancel the operation using an
|
|
16303
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
16304
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
16305
|
-
* which can be changed using
|
|
16306
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
16307
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
16308
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
16309
|
-
*/
|
|
16310
|
-
signal?: AbortSignal;
|
|
16311
|
-
|
|
16312
14932
|
/**
|
|
16313
14933
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
16314
14934
|
* option in the config, or by using the
|
|
@@ -16368,25 +14988,6 @@ export interface Locator {
|
|
|
16368
14988
|
y: number;
|
|
16369
14989
|
};
|
|
16370
14990
|
|
|
16371
|
-
/**
|
|
16372
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
16373
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
16374
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
16375
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
16376
|
-
*/
|
|
16377
|
-
scroll?: "auto"|"none";
|
|
16378
|
-
|
|
16379
|
-
/**
|
|
16380
|
-
* Allows to cancel the operation using an
|
|
16381
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
16382
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
16383
|
-
* which can be changed using
|
|
16384
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
16385
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
16386
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
16387
|
-
*/
|
|
16388
|
-
signal?: AbortSignal;
|
|
16389
|
-
|
|
16390
14991
|
/**
|
|
16391
14992
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
16392
14993
|
* option in the config, or by using the
|
|
@@ -16481,17 +15082,6 @@ export interface Locator {
|
|
|
16481
15082
|
*/
|
|
16482
15083
|
noWaitAfter?: boolean;
|
|
16483
15084
|
|
|
16484
|
-
/**
|
|
16485
|
-
* Allows to cancel the operation using an
|
|
16486
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
16487
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
16488
|
-
* which can be changed using
|
|
16489
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
16490
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
16491
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
16492
|
-
*/
|
|
16493
|
-
signal?: AbortSignal;
|
|
16494
|
-
|
|
16495
15085
|
/**
|
|
16496
15086
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
16497
15087
|
* option in the config, or by using the
|
|
@@ -16554,25 +15144,6 @@ export interface Locator {
|
|
|
16554
15144
|
y: number;
|
|
16555
15145
|
};
|
|
16556
15146
|
|
|
16557
|
-
/**
|
|
16558
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
16559
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
16560
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
16561
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
16562
|
-
*/
|
|
16563
|
-
scroll?: "auto"|"none";
|
|
16564
|
-
|
|
16565
|
-
/**
|
|
16566
|
-
* Allows to cancel the operation using an
|
|
16567
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
16568
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
16569
|
-
* which can be changed using
|
|
16570
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
16571
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
16572
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
16573
|
-
*/
|
|
16574
|
-
signal?: AbortSignal;
|
|
16575
|
-
|
|
16576
15147
|
/**
|
|
16577
15148
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
16578
15149
|
* option in the config, or by using the
|
|
@@ -16600,17 +15171,6 @@ export interface Locator {
|
|
|
16600
15171
|
* @param options
|
|
16601
15172
|
*/
|
|
16602
15173
|
textContent(options?: {
|
|
16603
|
-
/**
|
|
16604
|
-
* Allows to cancel the operation using an
|
|
16605
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
16606
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
16607
|
-
* which can be changed using
|
|
16608
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
16609
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
16610
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
16611
|
-
*/
|
|
16612
|
-
signal?: AbortSignal;
|
|
16613
|
-
|
|
16614
15174
|
/**
|
|
16615
15175
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
16616
15176
|
* option in the config, or by using the
|
|
@@ -16647,17 +15207,6 @@ export interface Locator {
|
|
|
16647
15207
|
*/
|
|
16648
15208
|
noWaitAfter?: boolean;
|
|
16649
15209
|
|
|
16650
|
-
/**
|
|
16651
|
-
* Allows to cancel the operation using an
|
|
16652
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
16653
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
16654
|
-
* which can be changed using
|
|
16655
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
16656
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
16657
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
16658
|
-
*/
|
|
16659
|
-
signal?: AbortSignal;
|
|
16660
|
-
|
|
16661
15210
|
/**
|
|
16662
15211
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
16663
15212
|
* option in the config, or by using the
|
|
@@ -16717,25 +15266,6 @@ export interface Locator {
|
|
|
16717
15266
|
y: number;
|
|
16718
15267
|
};
|
|
16719
15268
|
|
|
16720
|
-
/**
|
|
16721
|
-
* Controls whether Playwright scrolls the element into view before performing the action. Defaults to `"auto"`, which
|
|
16722
|
-
* scrolls the element into view when necessary, including scrolling nested scrollable containers. When set to
|
|
16723
|
-
* `"none"`, Playwright does not scroll the element and the action fails if the element is not already in the
|
|
16724
|
-
* viewport. This is useful to assert that an element is reachable by the user without additional scrolling.
|
|
16725
|
-
*/
|
|
16726
|
-
scroll?: "auto"|"none";
|
|
16727
|
-
|
|
16728
|
-
/**
|
|
16729
|
-
* Allows to cancel the operation using an
|
|
16730
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
16731
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
16732
|
-
* which can be changed using
|
|
16733
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
16734
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
16735
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
16736
|
-
*/
|
|
16737
|
-
signal?: AbortSignal;
|
|
16738
|
-
|
|
16739
15269
|
/**
|
|
16740
15270
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
16741
15271
|
* option in the config, or by using the
|
|
@@ -16769,17 +15299,6 @@ export interface Locator {
|
|
|
16769
15299
|
* @param options
|
|
16770
15300
|
*/
|
|
16771
15301
|
waitFor(options?: {
|
|
16772
|
-
/**
|
|
16773
|
-
* Allows to cancel the operation using an
|
|
16774
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
16775
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
16776
|
-
* which can be changed using
|
|
16777
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
16778
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
16779
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
16780
|
-
*/
|
|
16781
|
-
signal?: AbortSignal;
|
|
16782
|
-
|
|
16783
15302
|
/**
|
|
16784
15303
|
* Defaults to `'visible'`. Can be either:
|
|
16785
15304
|
* - `'attached'` - wait for element to be present in DOM.
|
|
@@ -16832,10 +15351,6 @@ export interface BrowserType<Unused = {}> {
|
|
|
16832
15351
|
* If you are experiencing issues or attempting to use advanced functionality, you probably want to use
|
|
16833
15352
|
* [browserType.connect(endpoint[, options])](https://playwright.dev/docs/api/class-browsertype#browser-type-connect).
|
|
16834
15353
|
*
|
|
16835
|
-
* **NOTE** Playwright maintains a curated list of arguments for launching the browser. If you launch the browser
|
|
16836
|
-
* without Playwright and do not pass the exact same arguments, some of Playwright functionality may be broken upon
|
|
16837
|
-
* connecting to the browser.
|
|
16838
|
-
*
|
|
16839
15354
|
* **Usage**
|
|
16840
15355
|
*
|
|
16841
15356
|
* ```js
|
|
@@ -16862,10 +15377,6 @@ export interface BrowserType<Unused = {}> {
|
|
|
16862
15377
|
* If you are experiencing issues or attempting to use advanced functionality, you probably want to use
|
|
16863
15378
|
* [browserType.connect(endpoint[, options])](https://playwright.dev/docs/api/class-browsertype#browser-type-connect).
|
|
16864
15379
|
*
|
|
16865
|
-
* **NOTE** Playwright maintains a curated list of arguments for launching the browser. If you launch the browser
|
|
16866
|
-
* without Playwright and do not pass the exact same arguments, some of Playwright functionality may be broken upon
|
|
16867
|
-
* connecting to the browser.
|
|
16868
|
-
*
|
|
16869
15380
|
* **Usage**
|
|
16870
15381
|
*
|
|
16871
15382
|
* ```js
|
|
@@ -16896,10 +15407,6 @@ export interface BrowserType<Unused = {}> {
|
|
|
16896
15407
|
* If you are experiencing issues or attempting to use advanced functionality, you probably want to use
|
|
16897
15408
|
* [browserType.connect(endpoint[, options])](https://playwright.dev/docs/api/class-browsertype#browser-type-connect).
|
|
16898
15409
|
*
|
|
16899
|
-
* **NOTE** Playwright maintains a curated list of arguments for launching the browser. If you launch the browser
|
|
16900
|
-
* without Playwright and do not pass the exact same arguments, some of Playwright functionality may be broken upon
|
|
16901
|
-
* connecting to the browser.
|
|
16902
|
-
*
|
|
16903
15410
|
* **Usage**
|
|
16904
15411
|
*
|
|
16905
15412
|
* ```js
|
|
@@ -17419,12 +15926,6 @@ export interface BrowserType<Unused = {}> {
|
|
|
17419
15926
|
* Font size of the action title in pixels. Defaults to `24`.
|
|
17420
15927
|
*/
|
|
17421
15928
|
fontSize?: number;
|
|
17422
|
-
|
|
17423
|
-
/**
|
|
17424
|
-
* Cursor decoration shown for pointer actions. `"pointer"` (the default) renders a mouse pointer that animates from
|
|
17425
|
-
* the previous action point to the next one. `"none"` disables the cursor decoration.
|
|
17426
|
-
*/
|
|
17427
|
-
cursor?: "none"|"pointer";
|
|
17428
15929
|
};
|
|
17429
15930
|
};
|
|
17430
15931
|
|
|
@@ -17757,8 +16258,8 @@ export interface CDPSession {
|
|
|
17757
16258
|
* **Usage**
|
|
17758
16259
|
*
|
|
17759
16260
|
* ```js
|
|
17760
|
-
* session.on('event', ({
|
|
17761
|
-
* console.log(`CDP event: ${
|
|
16261
|
+
* session.on('event', ({ name, params }) => {
|
|
16262
|
+
* console.log(`CDP event: ${name}`, params);
|
|
17762
16263
|
* });
|
|
17763
16264
|
* ```
|
|
17764
16265
|
*
|
|
@@ -17807,8 +16308,8 @@ export interface CDPSession {
|
|
|
17807
16308
|
* **Usage**
|
|
17808
16309
|
*
|
|
17809
16310
|
* ```js
|
|
17810
|
-
* session.on('event', ({
|
|
17811
|
-
* console.log(`CDP event: ${
|
|
16311
|
+
* session.on('event', ({ name, params }) => {
|
|
16312
|
+
* console.log(`CDP event: ${name}`, params);
|
|
17812
16313
|
* });
|
|
17813
16314
|
* ```
|
|
17814
16315
|
*
|
|
@@ -17877,8 +16378,8 @@ export interface CDPSession {
|
|
|
17877
16378
|
* **Usage**
|
|
17878
16379
|
*
|
|
17879
16380
|
* ```js
|
|
17880
|
-
* session.on('event', ({
|
|
17881
|
-
* console.log(`CDP event: ${
|
|
16381
|
+
* session.on('event', ({ name, params }) => {
|
|
16382
|
+
* console.log(`CDP event: ${name}`, params);
|
|
17882
16383
|
* });
|
|
17883
16384
|
* ```
|
|
17884
16385
|
*
|
|
@@ -18593,7 +17094,7 @@ export interface ElectronApplication {
|
|
|
18593
17094
|
/**
|
|
18594
17095
|
* This event is issued when the application process has been terminated.
|
|
18595
17096
|
*/
|
|
18596
|
-
waitForEvent(event: 'close', optionsOrPredicate?: { predicate?: () => boolean | Promise<boolean>, timeout?: number
|
|
17097
|
+
waitForEvent(event: 'close', optionsOrPredicate?: { predicate?: () => boolean | Promise<boolean>, timeout?: number } | (() => boolean | Promise<boolean>)): Promise<void>;
|
|
18597
17098
|
|
|
18598
17099
|
/**
|
|
18599
17100
|
* Emitted when JavaScript within the Electron main process calls one of console API methods, e.g. `console.log` or
|
|
@@ -18615,13 +17116,13 @@ export interface ElectronApplication {
|
|
|
18615
17116
|
* ```
|
|
18616
17117
|
*
|
|
18617
17118
|
*/
|
|
18618
|
-
waitForEvent(event: 'console', optionsOrPredicate?: { predicate?: (consoleMessage: ConsoleMessage) => boolean | Promise<boolean>, timeout?: number
|
|
17119
|
+
waitForEvent(event: 'console', optionsOrPredicate?: { predicate?: (consoleMessage: ConsoleMessage) => boolean | Promise<boolean>, timeout?: number } | ((consoleMessage: ConsoleMessage) => boolean | Promise<boolean>)): Promise<ConsoleMessage>;
|
|
18619
17120
|
|
|
18620
17121
|
/**
|
|
18621
17122
|
* This event is issued for every window that is created **and loaded** in Electron. It contains a
|
|
18622
17123
|
* [Page](https://playwright.dev/docs/api/class-page) that can be used for Playwright automation.
|
|
18623
17124
|
*/
|
|
18624
|
-
waitForEvent(event: 'window', optionsOrPredicate?: { predicate?: (page: Page) => boolean | Promise<boolean>, timeout?: number
|
|
17125
|
+
waitForEvent(event: 'window', optionsOrPredicate?: { predicate?: (page: Page) => boolean | Promise<boolean>, timeout?: number } | ((page: Page) => boolean | Promise<boolean>)): Promise<Page>;
|
|
18625
17126
|
|
|
18626
17127
|
|
|
18627
17128
|
/**
|
|
@@ -19068,17 +17569,6 @@ export interface APIRequestContext {
|
|
|
19068
17569
|
*/
|
|
19069
17570
|
params?: { [key: string]: string|number|boolean; }|URLSearchParams|string;
|
|
19070
17571
|
|
|
19071
|
-
/**
|
|
19072
|
-
* Allows to cancel the operation using an
|
|
19073
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
19074
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
19075
|
-
* which can be changed using
|
|
19076
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
19077
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
19078
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
19079
|
-
*/
|
|
19080
|
-
signal?: AbortSignal;
|
|
19081
|
-
|
|
19082
17572
|
/**
|
|
19083
17573
|
* Request timeout in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
|
|
19084
17574
|
*/
|
|
@@ -19216,17 +17706,6 @@ export interface APIRequestContext {
|
|
|
19216
17706
|
*/
|
|
19217
17707
|
params?: { [key: string]: string|number|boolean; }|URLSearchParams|string;
|
|
19218
17708
|
|
|
19219
|
-
/**
|
|
19220
|
-
* Allows to cancel the operation using an
|
|
19221
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
19222
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
19223
|
-
* which can be changed using
|
|
19224
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
19225
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
19226
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
19227
|
-
*/
|
|
19228
|
-
signal?: AbortSignal;
|
|
19229
|
-
|
|
19230
17709
|
/**
|
|
19231
17710
|
* Request timeout in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
|
|
19232
17711
|
*/
|
|
@@ -19339,17 +17818,6 @@ export interface APIRequestContext {
|
|
|
19339
17818
|
*/
|
|
19340
17819
|
params?: { [key: string]: string|number|boolean; }|URLSearchParams|string;
|
|
19341
17820
|
|
|
19342
|
-
/**
|
|
19343
|
-
* Allows to cancel the operation using an
|
|
19344
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
19345
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
19346
|
-
* which can be changed using
|
|
19347
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
19348
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
19349
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
19350
|
-
*/
|
|
19351
|
-
signal?: AbortSignal;
|
|
19352
|
-
|
|
19353
17821
|
/**
|
|
19354
17822
|
* Request timeout in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
|
|
19355
17823
|
*/
|
|
@@ -19436,17 +17904,6 @@ export interface APIRequestContext {
|
|
|
19436
17904
|
*/
|
|
19437
17905
|
params?: { [key: string]: string|number|boolean; }|URLSearchParams|string;
|
|
19438
17906
|
|
|
19439
|
-
/**
|
|
19440
|
-
* Allows to cancel the operation using an
|
|
19441
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
19442
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
19443
|
-
* which can be changed using
|
|
19444
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
19445
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
19446
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
19447
|
-
*/
|
|
19448
|
-
signal?: AbortSignal;
|
|
19449
|
-
|
|
19450
17907
|
/**
|
|
19451
17908
|
* Request timeout in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
|
|
19452
17909
|
*/
|
|
@@ -19533,17 +17990,6 @@ export interface APIRequestContext {
|
|
|
19533
17990
|
*/
|
|
19534
17991
|
params?: { [key: string]: string|number|boolean; }|URLSearchParams|string;
|
|
19535
17992
|
|
|
19536
|
-
/**
|
|
19537
|
-
* Allows to cancel the operation using an
|
|
19538
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
19539
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
19540
|
-
* which can be changed using
|
|
19541
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
19542
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
19543
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
19544
|
-
*/
|
|
19545
|
-
signal?: AbortSignal;
|
|
19546
|
-
|
|
19547
17993
|
/**
|
|
19548
17994
|
* Request timeout in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
|
|
19549
17995
|
*/
|
|
@@ -19672,17 +18118,6 @@ export interface APIRequestContext {
|
|
|
19672
18118
|
*/
|
|
19673
18119
|
params?: { [key: string]: string|number|boolean; }|URLSearchParams|string;
|
|
19674
18120
|
|
|
19675
|
-
/**
|
|
19676
|
-
* Allows to cancel the operation using an
|
|
19677
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
19678
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
19679
|
-
* which can be changed using
|
|
19680
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
19681
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
19682
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
19683
|
-
*/
|
|
19684
|
-
signal?: AbortSignal;
|
|
19685
|
-
|
|
19686
18121
|
/**
|
|
19687
18122
|
* Request timeout in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
|
|
19688
18123
|
*/
|
|
@@ -19769,17 +18204,6 @@ export interface APIRequestContext {
|
|
|
19769
18204
|
*/
|
|
19770
18205
|
params?: { [key: string]: string|number|boolean; }|URLSearchParams|string;
|
|
19771
18206
|
|
|
19772
|
-
/**
|
|
19773
|
-
* Allows to cancel the operation using an
|
|
19774
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
19775
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
19776
|
-
* which can be changed using
|
|
19777
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
19778
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
19779
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
19780
|
-
*/
|
|
19781
|
-
signal?: AbortSignal;
|
|
19782
|
-
|
|
19783
18207
|
/**
|
|
19784
18208
|
* Request timeout in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
|
|
19785
18209
|
*/
|
|
@@ -19952,68 +18376,6 @@ export interface APIResponse {
|
|
|
19952
18376
|
*/
|
|
19953
18377
|
text(): Promise<string>;
|
|
19954
18378
|
|
|
19955
|
-
/**
|
|
19956
|
-
* Returns resource timing information for given response. For redirected requests, returns the information for the
|
|
19957
|
-
* last request in the redirect chain. When the response is served [from the HAR file](https://playwright.dev/docs/mock#replaying-from-har),
|
|
19958
|
-
* timing information is not available and all the values are -1. Find more information at
|
|
19959
|
-
* [Resource Timing API](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming).
|
|
19960
|
-
*/
|
|
19961
|
-
timing(): {
|
|
19962
|
-
/**
|
|
19963
|
-
* Request start time in milliseconds elapsed since January 1, 1970 00:00:00 UTC
|
|
19964
|
-
*/
|
|
19965
|
-
startTime: number;
|
|
19966
|
-
|
|
19967
|
-
/**
|
|
19968
|
-
* Time immediately before the client starts the domain name lookup for the resource. The value is given in
|
|
19969
|
-
* milliseconds relative to `startTime`, -1 if not available.
|
|
19970
|
-
*/
|
|
19971
|
-
domainLookupStart: number;
|
|
19972
|
-
|
|
19973
|
-
/**
|
|
19974
|
-
* Time immediately after the client ends the domain name lookup for the resource. The value is given in milliseconds
|
|
19975
|
-
* relative to `startTime`, -1 if not available.
|
|
19976
|
-
*/
|
|
19977
|
-
domainLookupEnd: number;
|
|
19978
|
-
|
|
19979
|
-
/**
|
|
19980
|
-
* Time immediately before the client starts establishing the connection to the server to retrieve the resource. The
|
|
19981
|
-
* value is given in milliseconds relative to `startTime`, -1 if not available.
|
|
19982
|
-
*/
|
|
19983
|
-
connectStart: number;
|
|
19984
|
-
|
|
19985
|
-
/**
|
|
19986
|
-
* Time immediately before the client starts the handshake process to secure the current connection. The value is
|
|
19987
|
-
* given in milliseconds relative to `startTime`, -1 if not available.
|
|
19988
|
-
*/
|
|
19989
|
-
secureConnectionStart: number;
|
|
19990
|
-
|
|
19991
|
-
/**
|
|
19992
|
-
* Time immediately after the client establishes the connection to the server to retrieve the resource. The value is
|
|
19993
|
-
* given in milliseconds relative to `startTime`, -1 if not available.
|
|
19994
|
-
*/
|
|
19995
|
-
connectEnd: number;
|
|
19996
|
-
|
|
19997
|
-
/**
|
|
19998
|
-
* Time immediately before the client starts requesting the resource from the server, cache, or local resource. The
|
|
19999
|
-
* value is given in milliseconds relative to `startTime`, -1 if not available.
|
|
20000
|
-
*/
|
|
20001
|
-
requestStart: number;
|
|
20002
|
-
|
|
20003
|
-
/**
|
|
20004
|
-
* Time immediately after the client receives the first byte of the response from the server, cache, or local
|
|
20005
|
-
* resource. The value is given in milliseconds relative to `startTime`, -1 if not available.
|
|
20006
|
-
*/
|
|
20007
|
-
responseStart: number;
|
|
20008
|
-
|
|
20009
|
-
/**
|
|
20010
|
-
* Time immediately after the client receives the last byte of the resource or immediately before the transport
|
|
20011
|
-
* connection is closed, whichever comes first. The value is given in milliseconds relative to `startTime`, -1 if not
|
|
20012
|
-
* available.
|
|
20013
|
-
*/
|
|
20014
|
-
responseEnd: number;
|
|
20015
|
-
};
|
|
20016
|
-
|
|
20017
18379
|
/**
|
|
20018
18380
|
* Contains the URL of the response.
|
|
20019
18381
|
*/
|
|
@@ -20364,10 +18726,7 @@ export interface Coverage {
|
|
|
20364
18726
|
reportAnonymousScripts?: boolean;
|
|
20365
18727
|
|
|
20366
18728
|
/**
|
|
20367
|
-
*
|
|
20368
|
-
*
|
|
20369
|
-
* Whether to reset coverage on every navigation. Defaults to `true`. Note that passing `false` does not guarantee
|
|
20370
|
-
* that coverage persists through navigations, due to browser architecture limitations.
|
|
18729
|
+
* Whether to reset coverage on every navigation. Defaults to `true`.
|
|
20371
18730
|
*/
|
|
20372
18731
|
resetOnNavigation?: boolean;
|
|
20373
18732
|
}): Promise<void>;
|
|
@@ -20453,7 +18812,7 @@ export interface Coverage {
|
|
|
20453
18812
|
* `navigator.credentials.create()` / `navigator.credentials.get()` ceremonies in the page, without a real
|
|
20454
18813
|
* authenticator or hardware security key.
|
|
20455
18814
|
*
|
|
20456
|
-
* There are
|
|
18815
|
+
* There are two common ways to use it:
|
|
20457
18816
|
*
|
|
20458
18817
|
* **Usage: seed a known credential**
|
|
20459
18818
|
*
|
|
@@ -20474,10 +18833,10 @@ export interface Coverage {
|
|
|
20474
18833
|
* // The page's navigator.credentials.get() is answered with the seeded passkey.
|
|
20475
18834
|
* ```
|
|
20476
18835
|
*
|
|
20477
|
-
* **Usage: capture a
|
|
18836
|
+
* **Usage: capture a passkey, then reuse it**
|
|
20478
18837
|
*
|
|
20479
18838
|
* ```js
|
|
20480
|
-
* // setup test: let the app register a passkey, then save
|
|
18839
|
+
* // setup test: let the app register a passkey, then save it.
|
|
20481
18840
|
* const context = await browser.newContext();
|
|
20482
18841
|
* await context.credentials.install();
|
|
20483
18842
|
*
|
|
@@ -20502,10 +18861,6 @@ export interface Coverage {
|
|
|
20502
18861
|
* // navigator.credentials.get() resolves the captured passkey — already signed in.
|
|
20503
18862
|
* ```
|
|
20504
18863
|
*
|
|
20505
|
-
* **Usage: save credentials in the storage state, restore later**
|
|
20506
|
-
*
|
|
20507
|
-
* See [authentication guide](https://playwright.dev/docs/auth) for examples of using saving and resotring the storage state.
|
|
20508
|
-
*
|
|
20509
18864
|
* **Defaults**
|
|
20510
18865
|
*/
|
|
20511
18866
|
export interface Credentials {
|
|
@@ -20788,15 +19143,14 @@ export interface Dialog {
|
|
|
20788
19143
|
/**
|
|
20789
19144
|
* [Disposable](https://playwright.dev/docs/api/class-disposable) is returned from various methods to allow undoing
|
|
20790
19145
|
* the corresponding action. For example,
|
|
20791
|
-
* [page.addInitScript(script[, arg
|
|
20792
|
-
*
|
|
20793
|
-
* script.
|
|
19146
|
+
* [page.addInitScript(script[, arg])](https://playwright.dev/docs/api/class-page#page-add-init-script) returns a
|
|
19147
|
+
* [Disposable](https://playwright.dev/docs/api/class-disposable) that can be used to remove the init script.
|
|
20794
19148
|
*/
|
|
20795
19149
|
export interface Disposable {
|
|
20796
19150
|
/**
|
|
20797
19151
|
* Removes the associated resource. For example, removes the init script installed via
|
|
20798
|
-
* [page.addInitScript(script[, arg
|
|
20799
|
-
* [browserContext.addInitScript(script[, arg
|
|
19152
|
+
* [page.addInitScript(script[, arg])](https://playwright.dev/docs/api/class-page#page-add-init-script) or
|
|
19153
|
+
* [browserContext.addInitScript(script[, arg])](https://playwright.dev/docs/api/class-browsercontext#browser-context-add-init-script).
|
|
20800
19154
|
*/
|
|
20801
19155
|
dispose(): Promise<void>;
|
|
20802
19156
|
|
|
@@ -20963,17 +19317,6 @@ export interface FileChooser {
|
|
|
20963
19317
|
*/
|
|
20964
19318
|
noWaitAfter?: boolean;
|
|
20965
19319
|
|
|
20966
|
-
/**
|
|
20967
|
-
* Allows to cancel the operation using an
|
|
20968
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
20969
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
20970
|
-
* which can be changed using
|
|
20971
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
20972
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
20973
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
20974
|
-
*/
|
|
20975
|
-
signal?: AbortSignal;
|
|
20976
|
-
|
|
20977
19320
|
/**
|
|
20978
19321
|
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
20979
19322
|
* option in the config, or by using the
|
|
@@ -22098,49 +20441,49 @@ export interface Request {
|
|
|
22098
20441
|
startTime: number;
|
|
22099
20442
|
|
|
22100
20443
|
/**
|
|
22101
|
-
* Time immediately before the
|
|
20444
|
+
* Time immediately before the browser starts the domain name lookup for the resource. The value is given in
|
|
22102
20445
|
* milliseconds relative to `startTime`, -1 if not available.
|
|
22103
20446
|
*/
|
|
22104
20447
|
domainLookupStart: number;
|
|
22105
20448
|
|
|
22106
20449
|
/**
|
|
22107
|
-
* Time immediately after the
|
|
22108
|
-
* relative to `startTime`, -1 if not available.
|
|
20450
|
+
* Time immediately after the browser starts the domain name lookup for the resource. The value is given in
|
|
20451
|
+
* milliseconds relative to `startTime`, -1 if not available.
|
|
22109
20452
|
*/
|
|
22110
20453
|
domainLookupEnd: number;
|
|
22111
20454
|
|
|
22112
20455
|
/**
|
|
22113
|
-
* Time immediately before the
|
|
22114
|
-
* value is given in milliseconds relative to `startTime`, -1 if not available.
|
|
20456
|
+
* Time immediately before the user agent starts establishing the connection to the server to retrieve the resource.
|
|
20457
|
+
* The value is given in milliseconds relative to `startTime`, -1 if not available.
|
|
22115
20458
|
*/
|
|
22116
20459
|
connectStart: number;
|
|
22117
20460
|
|
|
22118
20461
|
/**
|
|
22119
|
-
* Time immediately before the
|
|
20462
|
+
* Time immediately before the browser starts the handshake process to secure the current connection. The value is
|
|
22120
20463
|
* given in milliseconds relative to `startTime`, -1 if not available.
|
|
22121
20464
|
*/
|
|
22122
20465
|
secureConnectionStart: number;
|
|
22123
20466
|
|
|
22124
20467
|
/**
|
|
22125
|
-
* Time immediately
|
|
22126
|
-
* given in milliseconds relative to `startTime`, -1 if not available.
|
|
20468
|
+
* Time immediately before the user agent starts establishing the connection to the server to retrieve the resource.
|
|
20469
|
+
* The value is given in milliseconds relative to `startTime`, -1 if not available.
|
|
22127
20470
|
*/
|
|
22128
20471
|
connectEnd: number;
|
|
22129
20472
|
|
|
22130
20473
|
/**
|
|
22131
|
-
* Time immediately before the
|
|
20474
|
+
* Time immediately before the browser starts requesting the resource from the server, cache, or local resource. The
|
|
22132
20475
|
* value is given in milliseconds relative to `startTime`, -1 if not available.
|
|
22133
20476
|
*/
|
|
22134
20477
|
requestStart: number;
|
|
22135
20478
|
|
|
22136
20479
|
/**
|
|
22137
|
-
* Time immediately after the
|
|
20480
|
+
* Time immediately after the browser receives the first byte of the response from the server, cache, or local
|
|
22138
20481
|
* resource. The value is given in milliseconds relative to `startTime`, -1 if not available.
|
|
22139
20482
|
*/
|
|
22140
20483
|
responseStart: number;
|
|
22141
20484
|
|
|
22142
20485
|
/**
|
|
22143
|
-
* Time immediately after the
|
|
20486
|
+
* Time immediately after the browser receives the last byte of the resource or immediately before the transport
|
|
22144
20487
|
* connection is closed, whichever comes first. The value is given in milliseconds relative to `startTime`, -1 if not
|
|
22145
20488
|
* available.
|
|
22146
20489
|
*/
|
|
@@ -22551,17 +20894,6 @@ export interface Route {
|
|
|
22551
20894
|
*/
|
|
22552
20895
|
postData?: string|Buffer|Serializable;
|
|
22553
20896
|
|
|
22554
|
-
/**
|
|
22555
|
-
* Allows to cancel the operation using an
|
|
22556
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
22557
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
22558
|
-
* which can be changed using
|
|
22559
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
22560
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
22561
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
22562
|
-
*/
|
|
22563
|
-
signal?: AbortSignal;
|
|
22564
|
-
|
|
22565
20897
|
/**
|
|
22566
20898
|
* Request timeout in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
|
|
22567
20899
|
*/
|
|
@@ -23279,7 +21611,7 @@ export interface WebSocket {
|
|
|
23279
21611
|
/**
|
|
23280
21612
|
* Fired when the websocket closes.
|
|
23281
21613
|
*/
|
|
23282
|
-
waitForEvent(event: 'close', optionsOrPredicate?: { predicate?: (webSocket: WebSocket) => boolean | Promise<boolean>, timeout?: number
|
|
21614
|
+
waitForEvent(event: 'close', optionsOrPredicate?: { predicate?: (webSocket: WebSocket) => boolean | Promise<boolean>, timeout?: number } | ((webSocket: WebSocket) => boolean | Promise<boolean>)): Promise<WebSocket>;
|
|
23283
21615
|
|
|
23284
21616
|
/**
|
|
23285
21617
|
* Fired when the websocket receives a frame.
|
|
@@ -23289,7 +21621,7 @@ export interface WebSocket {
|
|
|
23289
21621
|
* frame payload
|
|
23290
21622
|
*/
|
|
23291
21623
|
payload: string|Buffer;
|
|
23292
|
-
}) => boolean | Promise<boolean>, timeout?: number
|
|
21624
|
+
}) => boolean | Promise<boolean>, timeout?: number } | ((data: {
|
|
23293
21625
|
/**
|
|
23294
21626
|
* frame payload
|
|
23295
21627
|
*/
|
|
@@ -23309,7 +21641,7 @@ export interface WebSocket {
|
|
|
23309
21641
|
* frame payload
|
|
23310
21642
|
*/
|
|
23311
21643
|
payload: string|Buffer;
|
|
23312
|
-
}) => boolean | Promise<boolean>, timeout?: number
|
|
21644
|
+
}) => boolean | Promise<boolean>, timeout?: number } | ((data: {
|
|
23313
21645
|
/**
|
|
23314
21646
|
* frame payload
|
|
23315
21647
|
*/
|
|
@@ -23324,7 +21656,7 @@ export interface WebSocket {
|
|
|
23324
21656
|
/**
|
|
23325
21657
|
* Fired when the websocket has an error.
|
|
23326
21658
|
*/
|
|
23327
|
-
waitForEvent(event: 'socketerror', optionsOrPredicate?: { predicate?: (string: string) => boolean | Promise<boolean>, timeout?: number
|
|
21659
|
+
waitForEvent(event: 'socketerror', optionsOrPredicate?: { predicate?: (string: string) => boolean | Promise<boolean>, timeout?: number } | ((string: string) => boolean | Promise<boolean>)): Promise<string>;
|
|
23328
21660
|
|
|
23329
21661
|
}
|
|
23330
21662
|
|
|
@@ -23677,12 +22009,6 @@ export interface Electron {
|
|
|
23677
22009
|
* Font size of the action title in pixels. Defaults to `24`.
|
|
23678
22010
|
*/
|
|
23679
22011
|
fontSize?: number;
|
|
23680
|
-
|
|
23681
|
-
/**
|
|
23682
|
-
* Cursor decoration shown for pointer actions. `"pointer"` (the default) renders a mouse pointer that animates from
|
|
23683
|
-
* the previous action point to the next one. `"none"` disables the cursor decoration.
|
|
23684
|
-
*/
|
|
23685
|
-
cursor?: "none"|"pointer";
|
|
23686
22012
|
};
|
|
23687
22013
|
};
|
|
23688
22014
|
|
|
@@ -24371,12 +22697,6 @@ export interface AndroidDevice {
|
|
|
24371
22697
|
* Font size of the action title in pixels. Defaults to `24`.
|
|
24372
22698
|
*/
|
|
24373
22699
|
fontSize?: number;
|
|
24374
|
-
|
|
24375
|
-
/**
|
|
24376
|
-
* Cursor decoration shown for pointer actions. `"pointer"` (the default) renders a mouse pointer that animates from
|
|
24377
|
-
* the previous action point to the next one. `"none"` disables the cursor decoration.
|
|
24378
|
-
*/
|
|
24379
|
-
cursor?: "none"|"pointer";
|
|
24380
22700
|
};
|
|
24381
22701
|
};
|
|
24382
22702
|
|
|
@@ -24688,12 +23008,12 @@ export interface AndroidDevice {
|
|
|
24688
23008
|
/**
|
|
24689
23009
|
* Emitted when the device connection gets closed.
|
|
24690
23010
|
*/
|
|
24691
|
-
waitForEvent(event: 'close', optionsOrPredicate?: { predicate?: (androidDevice: AndroidDevice) => boolean | Promise<boolean>, timeout?: number
|
|
23011
|
+
waitForEvent(event: 'close', optionsOrPredicate?: { predicate?: (androidDevice: AndroidDevice) => boolean | Promise<boolean>, timeout?: number } | ((androidDevice: AndroidDevice) => boolean | Promise<boolean>)): Promise<AndroidDevice>;
|
|
24692
23012
|
|
|
24693
23013
|
/**
|
|
24694
23014
|
* Emitted when a new WebView instance is detected.
|
|
24695
23015
|
*/
|
|
24696
|
-
waitForEvent(event: 'webview', optionsOrPredicate?: { predicate?: (androidWebView: AndroidWebView) => boolean | Promise<boolean>, timeout?: number
|
|
23016
|
+
waitForEvent(event: 'webview', optionsOrPredicate?: { predicate?: (androidWebView: AndroidWebView) => boolean | Promise<boolean>, timeout?: number } | ((androidWebView: AndroidWebView) => boolean | Promise<boolean>)): Promise<AndroidWebView>;
|
|
24697
23017
|
|
|
24698
23018
|
|
|
24699
23019
|
/**
|
|
@@ -25200,8 +23520,7 @@ export interface LocatorScreenshotOptions {
|
|
|
25200
23520
|
path?: string;
|
|
25201
23521
|
|
|
25202
23522
|
/**
|
|
25203
|
-
* The quality of the image, between 0-100. Not applicable to `png` images.
|
|
25204
|
-
* `webp`, a quality of `100` (the default) produces a lossless image, while lower values use lossy compression.
|
|
23523
|
+
* The quality of the image, between 0-100. Not applicable to `png` images.
|
|
25205
23524
|
*/
|
|
25206
23525
|
quality?: number;
|
|
25207
23526
|
|
|
@@ -25214,17 +23533,6 @@ export interface LocatorScreenshotOptions {
|
|
|
25214
23533
|
*/
|
|
25215
23534
|
scale?: "css"|"device";
|
|
25216
23535
|
|
|
25217
|
-
/**
|
|
25218
|
-
* Allows to cancel the operation using an
|
|
25219
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
25220
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
25221
|
-
* which can be changed using
|
|
25222
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
25223
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
25224
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
25225
|
-
*/
|
|
25226
|
-
signal?: AbortSignal;
|
|
25227
|
-
|
|
25228
23536
|
/**
|
|
25229
23537
|
* Text of the stylesheet to apply while making the screenshot. This is where you can hide dynamic elements, make
|
|
25230
23538
|
* elements invisible or change their properties to help you creating repeatable screenshots. This stylesheet pierces
|
|
@@ -25243,21 +23551,10 @@ export interface LocatorScreenshotOptions {
|
|
|
25243
23551
|
/**
|
|
25244
23552
|
* Specify screenshot type, defaults to `png`.
|
|
25245
23553
|
*/
|
|
25246
|
-
type?: "png"|"jpeg"
|
|
23554
|
+
type?: "png"|"jpeg";
|
|
25247
23555
|
}
|
|
25248
23556
|
|
|
25249
23557
|
interface ElementHandleWaitForSelectorOptions {
|
|
25250
|
-
/**
|
|
25251
|
-
* Allows to cancel the operation using an
|
|
25252
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
25253
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
25254
|
-
* which can be changed using
|
|
25255
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
25256
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
25257
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
25258
|
-
*/
|
|
25259
|
-
signal?: AbortSignal;
|
|
25260
|
-
|
|
25261
23558
|
/**
|
|
25262
23559
|
* Defaults to `'visible'`. Can be either:
|
|
25263
23560
|
* - `'attached'` - wait for element to be present in DOM.
|
|
@@ -25580,12 +23877,6 @@ export interface BrowserContextOptions {
|
|
|
25580
23877
|
* Font size of the action title in pixels. Defaults to `24`.
|
|
25581
23878
|
*/
|
|
25582
23879
|
fontSize?: number;
|
|
25583
|
-
|
|
25584
|
-
/**
|
|
25585
|
-
* Cursor decoration shown for pointer actions. `"pointer"` (the default) renders a mouse pointer that animates from
|
|
25586
|
-
* the previous action point to the next one. `"none"` disables the cursor decoration.
|
|
25587
|
-
*/
|
|
25588
|
-
cursor?: "none"|"pointer";
|
|
25589
23880
|
};
|
|
25590
23881
|
};
|
|
25591
23882
|
|
|
@@ -25780,17 +24071,6 @@ export interface Cookie {
|
|
|
25780
24071
|
}
|
|
25781
24072
|
|
|
25782
24073
|
interface PageWaitForSelectorOptions {
|
|
25783
|
-
/**
|
|
25784
|
-
* Allows to cancel the operation using an
|
|
25785
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
25786
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
25787
|
-
* which can be changed using
|
|
25788
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
25789
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
25790
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
25791
|
-
*/
|
|
25792
|
-
signal?: AbortSignal;
|
|
25793
|
-
|
|
25794
24074
|
/**
|
|
25795
24075
|
* Defaults to `'visible'`. Can be either:
|
|
25796
24076
|
* - `'attached'` - wait for element to be present in DOM.
|
|
@@ -25827,17 +24107,6 @@ interface PageWaitForFunctionOptions {
|
|
|
25827
24107
|
*/
|
|
25828
24108
|
polling?: number|"raf";
|
|
25829
24109
|
|
|
25830
|
-
/**
|
|
25831
|
-
* Allows to cancel the operation using an
|
|
25832
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
25833
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
25834
|
-
* which can be changed using
|
|
25835
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
25836
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
25837
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
25838
|
-
*/
|
|
25839
|
-
signal?: AbortSignal;
|
|
25840
|
-
|
|
25841
24110
|
/**
|
|
25842
24111
|
* Maximum time to wait for in milliseconds. Defaults to `0` - no timeout. The default value can be changed via
|
|
25843
24112
|
* `actionTimeout` option in the config, or by using the
|
|
@@ -25924,8 +24193,7 @@ export interface PageScreenshotOptions {
|
|
|
25924
24193
|
path?: string;
|
|
25925
24194
|
|
|
25926
24195
|
/**
|
|
25927
|
-
* The quality of the image, between 0-100. Not applicable to `png` images.
|
|
25928
|
-
* `webp`, a quality of `100` (the default) produces a lossless image, while lower values use lossy compression.
|
|
24196
|
+
* The quality of the image, between 0-100. Not applicable to `png` images.
|
|
25929
24197
|
*/
|
|
25930
24198
|
quality?: number;
|
|
25931
24199
|
|
|
@@ -25938,17 +24206,6 @@ export interface PageScreenshotOptions {
|
|
|
25938
24206
|
*/
|
|
25939
24207
|
scale?: "css"|"device";
|
|
25940
24208
|
|
|
25941
|
-
/**
|
|
25942
|
-
* Allows to cancel the operation using an
|
|
25943
|
-
* [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). If the signal is aborted, the
|
|
25944
|
-
* operation will be aborted and throw an error. Note that providing a signal does not disable the default timeout,
|
|
25945
|
-
* which can be changed using
|
|
25946
|
-
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
25947
|
-
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout); pass
|
|
25948
|
-
* `timeout: 0` to disable the timeout entirely.
|
|
25949
|
-
*/
|
|
25950
|
-
signal?: AbortSignal;
|
|
25951
|
-
|
|
25952
24209
|
/**
|
|
25953
24210
|
* Text of the stylesheet to apply while making the screenshot. This is where you can hide dynamic elements, make
|
|
25954
24211
|
* elements invisible or change their properties to help you creating repeatable screenshots. This stylesheet pierces
|
|
@@ -25967,7 +24224,7 @@ export interface PageScreenshotOptions {
|
|
|
25967
24224
|
/**
|
|
25968
24225
|
* Specify screenshot type, defaults to `png`.
|
|
25969
24226
|
*/
|
|
25970
|
-
type?: "png"|"jpeg"
|
|
24227
|
+
type?: "png"|"jpeg";
|
|
25971
24228
|
}
|
|
25972
24229
|
|
|
25973
24230
|
type Devices = {
|