mirror of
https://github.com/microsoft/playwright.git
synced 2024-09-11 20:37:54 +03:00
docs(har): default update mode is minimal (#32016)
Update the documentation to match actual behavior. The actual behavior today: * Default mode is `full` when `recordHar` is passed to `browser.newContext` * Default mode is `minimal` when calling `context.routeFromHAR` and `page.routeFromHAR` Reference https://github.com/microsoft/playwright/issues/31983
This commit is contained in:
parent
fef27395a5
commit
193013c9ee
@ -3594,7 +3594,7 @@ A glob pattern, regular expression or predicate to match the request URL. Only r
|
||||
* since: v1.32
|
||||
- `updateMode` <[HarMode]<"full"|"minimal">>
|
||||
|
||||
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`.
|
||||
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 `minimal`.
|
||||
|
||||
### option: Page.routeFromHAR.updateContent
|
||||
* since: v1.32
|
||||
|
3
packages/playwright-core/types/types.d.ts
vendored
3
packages/playwright-core/types/types.d.ts
vendored
@ -3760,7 +3760,8 @@ export interface Page {
|
||||
|
||||
/**
|
||||
* 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`.
|
||||
* cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to
|
||||
* `minimal`.
|
||||
*/
|
||||
updateMode?: "full"|"minimal";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user