Skip to content

Commit 8f1d03f

Browse files
authored
docs(options): clarify recordHarPath and recordVideoDir behavior (#5923)
1 parent ca35da0 commit 8f1d03f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/src/api/params.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,9 @@ saved.
378378
- alias-python: record_har_path
379379
- `recordHarPath` <[path]>
380380

381-
Path on the filesystem to write the HAR file to.
381+
Enables [HAR](http://www.softwareishard.com/blog/har-12-spec) recording for all pages into the
382+
specified HAR file on the filesystem. If not specified, the HAR is not recorded. Make sure to
383+
call [`method: BrowserContext.close`] for the HAR to be saved.
382384

383385
## context-option-recordhar-omit-content
384386
* langs: csharp, java, python
@@ -405,7 +407,8 @@ sure to await [`method: BrowserContext.close`] for videos to be saved.
405407
- alias-python: record_video_dir
406408
- `recordVideoDir` <[path]>
407409

408-
Path to the directory to put videos into.
410+
Enables video recording for all pages into the specified directory. If not specified videos are
411+
not recorded. Make sure to call [`method: BrowserContext.close`] for videos to be saved.
409412

410413
## context-option-recordvideo-size
411414
* langs: csharp, java, python

0 commit comments

Comments
 (0)