docs: clarify routeFromHAR.update semantics (#17887)
This commit is contained in:
parent
df4498e7ee
commit
b140b29df0
|
|
@ -1093,7 +1093,7 @@ Defaults to abort.
|
||||||
* since: v1.23
|
* since: v1.23
|
||||||
- `update` ?<boolean>
|
- `update` ?<boolean>
|
||||||
|
|
||||||
If specified, updates the given HAR with the actual network information instead of serving from file.
|
If specified, updates the given HAR with the actual network information instead of serving from file. The file is written to disk when [`method: BrowserContext.close`] is called.
|
||||||
|
|
||||||
### option: BrowserContext.routeFromHAR.url
|
### option: BrowserContext.routeFromHAR.url
|
||||||
* since: v1.23
|
* since: v1.23
|
||||||
|
|
|
||||||
|
|
@ -3120,7 +3120,7 @@ Defaults to abort.
|
||||||
* since: v1.23
|
* since: v1.23
|
||||||
- `update` ?<boolean>
|
- `update` ?<boolean>
|
||||||
|
|
||||||
If specified, updates the given HAR with the actual network information instead of serving from file.
|
If specified, updates the given HAR with the actual network information instead of serving from file. The file is written to disk when [`method: BrowserContext.close`] is called.
|
||||||
|
|
||||||
### option: Page.routeFromHAR.url
|
### option: Page.routeFromHAR.url
|
||||||
* since: v1.23
|
* since: v1.23
|
||||||
|
|
|
||||||
8
packages/playwright-core/types/types.d.ts
vendored
8
packages/playwright-core/types/types.d.ts
vendored
|
|
@ -3359,7 +3359,9 @@ export interface Page {
|
||||||
notFound?: "abort"|"fallback";
|
notFound?: "abort"|"fallback";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If specified, updates the given HAR with the actual network information instead of serving from file.
|
* If specified, updates the given HAR with the actual network information instead of serving from file. The file is
|
||||||
|
* written to disk when
|
||||||
|
* [browserContext.close()](https://playwright.dev/docs/api/class-browsercontext#browser-context-close) is called.
|
||||||
*/
|
*/
|
||||||
update?: boolean;
|
update?: boolean;
|
||||||
|
|
||||||
|
|
@ -7478,7 +7480,9 @@ export interface BrowserContext {
|
||||||
notFound?: "abort"|"fallback";
|
notFound?: "abort"|"fallback";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If specified, updates the given HAR with the actual network information instead of serving from file.
|
* If specified, updates the given HAR with the actual network information instead of serving from file. The file is
|
||||||
|
* written to disk when
|
||||||
|
* [browserContext.close()](https://playwright.dev/docs/api/class-browsercontext#browser-context-close) is called.
|
||||||
*/
|
*/
|
||||||
update?: boolean;
|
update?: boolean;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue