You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds on-demand HAR recording to `Tracing`, available on both
`BrowserContext.tracing` and `APIRequestContext.tracing`. Unlike
`recordHar`, this can be scoped to an individual flow via explicit
start/stop calls.
Path on the filesystem to write the HAR file to. If the file name ends with `.zip`, the HAR is saved as a zip archive with response bodies attached as separate files.
Optional setting to control resource content management. If `omit` is specified, content is not persisted. If `attach` is specified, resources are persisted as separate files or entries in the ZIP archive. If `embed` is specified, content is stored inline the HAR file as per HAR specification. Defaults to `attach` for `.zip` output files and to `embed` for all other file extensions.
361
+
362
+
### option: Tracing.startHar.mode
363
+
* since: v1.60
364
+
-`mode` <[HarMode]<"full"|"minimal">>
365
+
366
+
When set to `minimal`, only record information necessary for routing from HAR. This omits sizes, timing, page, cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to `full`.
367
+
368
+
### option: Tracing.startHar.urlFilter
369
+
* since: v1.60
370
+
-`urlFilter` <[string]|[RegExp]>
371
+
372
+
A glob or regex pattern to filter requests that are stored in the HAR. Defaults to none.
373
+
306
374
## async method: Tracing.group
307
375
* since: v1.49
308
376
- returns: <[Disposable]>
@@ -400,3 +468,8 @@ Stop the trace chunk. See [`method: Tracing.startChunk`] for more details about
400
468
-`path` <[path]>
401
469
402
470
Export trace collected since the last [`method: Tracing.startChunk`] call into the file with the given path.
471
+
472
+
## async method: Tracing.stopHar
473
+
* since: v1.60
474
+
475
+
Stop HAR recording and save the HAR file to the path given to [`method: Tracing.startHar`].
0 commit comments