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: playwright/async_api.py
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,7 @@
49
49
MousePosition,
50
50
PdfMargins,
51
51
ProxyServer,
52
+
RecordHarOptions,
52
53
RequestFailure,
53
54
ResourceTiming,
54
55
SelectOption,
@@ -5820,6 +5821,7 @@ async def newContext(
5820
5821
defaultBrowserType: str=None,
5821
5822
videosPath: str=None,
5822
5823
videoSize: IntSize=None,
5824
+
recordHar: RecordHarOptions=None,
5823
5825
) ->"BrowserContext":
5824
5826
"""Browser.newContext
5825
5827
@@ -5864,6 +5866,8 @@ async def newContext(
5864
5866
Enables video recording for all pages to `videosPath` folder. If not specified, videos are not recorded. Make sure to await `browserContext.close` for videos to be saved.
Specifies dimensions of the automatically recorded video. Can only be used if `videosPath` is set. If not specified the size will be equal to `viewport`. If `viewport` is not configured explicitly the video size defaults to 1280x720. Actual picture of the page will be scaled down if necessary to fit specified size.
Enables HAR recording for all pages into `har.path` file. If not specified, the HAR is not recorded. Make sure to await `browserContext.close` for the HAR to be saved.
5867
5871
5868
5872
Returns
5869
5873
-------
@@ -5891,6 +5895,7 @@ async def newContext(
5891
5895
defaultBrowserType=defaultBrowserType,
5892
5896
videosPath=videosPath,
5893
5897
videoSize=videoSize,
5898
+
recordHar=recordHar,
5894
5899
)
5895
5900
)
5896
5901
@@ -5916,6 +5921,7 @@ async def newPage(
5916
5921
defaultBrowserType: str=None,
5917
5922
videosPath: str=None,
5918
5923
videoSize: IntSize=None,
5924
+
recordHar: RecordHarOptions=None,
5919
5925
) ->"Page":
5920
5926
"""Browser.newPage
5921
5927
@@ -5961,6 +5967,8 @@ async def newPage(
5961
5967
Enables video recording for all pages to `videosPath` folder. If not specified, videos are not recorded. Make sure to await `page.close` for videos to be saved.
Specifies dimensions of the automatically recorded video. Can only be used if `videosPath` is set. If not specified the size will be equal to `viewport`. If `viewport` is not configured explicitly the video size defaults to 1280x720. Actual picture of the page will be scaled down if necessary to fit specified size.
Enables HAR recording for all pages into `har.path` file. If not specified, the HAR is not recorded. Make sure to await `page.close` for the HAR to be saved.
Enables video recording for all pages to `videosPath` folder. If not specified, videos are not recorded. Make sure to await `browserContext.close` for videos to be saved.
Specifies dimensions of the automatically recorded video. Can only be used if `videosPath` is set. If not specified the size will be equal to `viewport`. If `viewport` is not configured explicitly the video size defaults to 1280x720. Actual picture of the page will be scaled down if necessary to fit specified size.
Enables HAR recording for all the pages into `har.path` file. If not specified, HAR is not recorded. Make sure to await `page.close` for HAR to be saved.
Copy file name to clipboardExpand all lines: playwright/sync_api.py
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,7 @@
48
48
MousePosition,
49
49
PdfMargins,
50
50
ProxyServer,
51
+
RecordHarOptions,
51
52
RequestFailure,
52
53
ResourceTiming,
53
54
SelectOption,
@@ -6056,6 +6057,7 @@ def newContext(
6056
6057
defaultBrowserType: str=None,
6057
6058
videosPath: str=None,
6058
6059
videoSize: IntSize=None,
6060
+
recordHar: RecordHarOptions=None,
6059
6061
) ->"BrowserContext":
6060
6062
"""Browser.newContext
6061
6063
@@ -6100,6 +6102,8 @@ def newContext(
6100
6102
Enables video recording for all pages to `videosPath` folder. If not specified, videos are not recorded. Make sure to await `browserContext.close` for videos to be saved.
Specifies dimensions of the automatically recorded video. Can only be used if `videosPath` is set. If not specified the size will be equal to `viewport`. If `viewport` is not configured explicitly the video size defaults to 1280x720. Actual picture of the page will be scaled down if necessary to fit specified size.
Enables HAR recording for all pages into `har.path` file. If not specified, the HAR is not recorded. Make sure to await `browserContext.close` for the HAR to be saved.
6103
6107
6104
6108
Returns
6105
6109
-------
@@ -6128,6 +6132,7 @@ def newContext(
6128
6132
defaultBrowserType=defaultBrowserType,
6129
6133
videosPath=videosPath,
6130
6134
videoSize=videoSize,
6135
+
recordHar=recordHar,
6131
6136
)
6132
6137
)
6133
6138
)
@@ -6154,6 +6159,7 @@ def newPage(
6154
6159
defaultBrowserType: str=None,
6155
6160
videosPath: str=None,
6156
6161
videoSize: IntSize=None,
6162
+
recordHar: RecordHarOptions=None,
6157
6163
) ->"Page":
6158
6164
"""Browser.newPage
6159
6165
@@ -6199,6 +6205,8 @@ def newPage(
6199
6205
Enables video recording for all pages to `videosPath` folder. If not specified, videos are not recorded. Make sure to await `page.close` for videos to be saved.
Specifies dimensions of the automatically recorded video. Can only be used if `videosPath` is set. If not specified the size will be equal to `viewport`. If `viewport` is not configured explicitly the video size defaults to 1280x720. Actual picture of the page will be scaled down if necessary to fit specified size.
Enables HAR recording for all pages into `har.path` file. If not specified, the HAR is not recorded. Make sure to await `page.close` for the HAR to be saved.
Enables video recording for all pages to `videosPath` folder. If not specified, videos are not recorded. Make sure to await `browserContext.close` for videos to be saved.
Specifies dimensions of the automatically recorded video. Can only be used if `videosPath` is set. If not specified the size will be equal to `viewport`. If `viewport` is not configured explicitly the video size defaults to 1280x720. Actual picture of the page will be scaled down if necessary to fit specified size.
Enables HAR recording for all the pages into `har.path` file. If not specified, HAR is not recorded. Make sure to await `page.close` for HAR to be saved.
0 commit comments