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 opt-in `interceptAPIRequests` option to `BrowserContext.routeFromHAR` so `page.request.*` / `context.request.*` calls are also served from the HAR file.
API-request lookup is restricted to entries marked `_apiRequest: true` (already written by the HAR recorder), so browser-side recordings are never served to API requests for the same URL.
Fixes <#22869>.
Copy file name to clipboardExpand all lines: docs/src/api/class-browsercontext.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1307,6 +1307,12 @@ When set to `minimal`, only record information necessary for routing from HAR. T
1307
1307
1308
1308
Optional setting to control resource content management. 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.
If set to `true`, requests made via [APIRequestContext] (such as [`property: BrowserContext.request`] or [`property: Page.request`]) are also served from the HAR file. By default these requests are sent to the network, matching the behavior prior to v1.62. Defaults to `false` for backward compatibility.
0 commit comments