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
Copy file name to clipboardExpand all lines: docs/src/api/params.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -827,6 +827,9 @@ When set to `minimal`, only record information necessary for routing from HAR. T
827
827
-`duration` ?<[float]> How long each annotation is displayed in milliseconds. Defaults to `500`.
828
828
-`position` ?<[AnnotatePosition]<"top-left"|"top"|"top-right"|"bottom-left"|"bottom"|"bottom-right">> Position of the action title overlay. Defaults to `"top-right"`.
829
829
-`fontSize` ?<[int]> Font size of the action title in pixels. Defaults to `24`.
830
+
-`quality` ?<[Object]> Encoding quality. When omitted, the tuned VP8 defaults are used.
831
+
-`mode` <[VideoQualityMode]<"crf"|"bitrate">> `"crf"` for constant rate factor (constant visual quality, variable file size). `"bitrate"` for a target bitrate (variable visual quality, predictable file size).
832
+
-`value` <[int]> For `"crf"`, an integer between `0` (lossless) and `63` (worst). For `"bitrate"`, the target bitrate in bits per second (e.g. `1_000_000` for 1 Mbit/s).
830
833
831
834
Enables video recording for all pages into `recordVideo.dir` directory. If not specified videos are not recorded. Make
832
835
sure to await [`method: BrowserContext.close`] for videos to be saved.
@@ -851,6 +854,16 @@ Dimensions of the recorded videos. If not specified the size will be equal to `v
851
854
scaled down to fit into 800x800. If `viewport` is not configured explicitly the video size defaults to 800x450.
852
855
Actual picture of each page will be scaled down if necessary to fit the specified size.
853
856
857
+
## context-option-recordvideo-quality
858
+
* langs: csharp, java, python
859
+
- alias-python: record_video_quality
860
+
-`recordVideoQuality` <[Object]>
861
+
* alias-java: RecordVideoQuality
862
+
-`mode` <[VideoQualityMode]<"crf"|"bitrate">> `"crf"` for constant rate factor (constant visual quality, variable file size). `"bitrate"` for a target bitrate (variable visual quality, predictable file size).
863
+
-`value` <[int]> For `"crf"`, an integer between `0` (lossless) and `63` (worst). For `"bitrate"`, the target bitrate in bits per second (e.g. `1_000_000` for 1 Mbit/s).
864
+
865
+
Encoding quality. When omitted, the tuned VP8 defaults are used.
866
+
854
867
## context-option-proxy
855
868
-`proxy` <[Object]>
856
869
* alias: Proxy
@@ -1075,6 +1088,7 @@ between the same pixel in compared images, between zero (strict) and one (lax),
Copy file name to clipboardExpand all lines: docs/src/test-api/class-testoptions.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -648,6 +648,9 @@ export default defineConfig({
648
648
-`level` ?<[TestAnnotationLevel]<"file"|"test"|"step">> Level of the detail to include about the current test.
649
649
-`position` ?<[AnnotatePosition]<"top-left"|"top"|"top-right"|"bottom-left"|"bottom"|"bottom-right">> Position of the test information overlay. Defaults to `"top-left"`.
650
650
-`fontSize` ?<[int]> Font size of the test information in pixels. Defaults to `14`.
651
+
-`quality` ?<[Object]> Encoding quality. When omitted, the tuned VP8 defaults are used.
652
+
-`mode` <[VideoQualityMode]<"crf"|"bitrate">> `"crf"` for constant rate factor (constant visual quality, variable file size). `"bitrate"` for a target bitrate (variable visual quality, predictable file size).
653
+
-`value` <[int]> For `"crf"`, an integer between `0` (lossless) and `63` (worst). For `"bitrate"`, the target bitrate in bits per second (e.g. `1_000_000` for 1 Mbit/s).
651
654
652
655
Whether to record video for each test. Defaults to `'off'`.
0 commit comments