docs: clarify routeFromHAR.update semantics (#17887)

This commit is contained in:
Yury Semikhatsky 2022-10-07 11:27:25 -07:00 committed by GitHub
parent df4498e7ee
commit b140b29df0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View File

@ -1093,7 +1093,7 @@ Defaults to abort.
* since: v1.23
- `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
* since: v1.23

View File

@ -3120,7 +3120,7 @@ Defaults to abort.
* since: v1.23
- `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
* since: v1.23

View File

@ -3359,7 +3359,9 @@ export interface Page {
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;
@ -7478,7 +7480,9 @@ export interface BrowserContext {
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;