parent
2ac0c59156
commit
1ab41babb1
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
[Download] objects are dispatched by page via the [`event: Page.download`] event.
|
[Download] objects are dispatched by page via the [`event: Page.download`] event.
|
||||||
|
|
||||||
If `downloadsPath` isn't specified, all the downloaded files belonging to the browser context are deleted when the
|
All the downloaded files belonging to the browser context are deleted when the
|
||||||
browser context is closed. And all downloaded files are deleted when the browser closes.
|
browser context is closed.
|
||||||
|
|
||||||
Download event is emitted once the download starts. Download path becomes available once download completes:
|
Download event is emitted once the download starts. Download path becomes available once download completes:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ can obtain the download url, file system path and payload stream using the [Down
|
||||||
You can specify where to persist downloaded files using the [`option: downloadsPath`] option in [`method: BrowserType.launch`].
|
You can specify where to persist downloaded files using the [`option: downloadsPath`] option in [`method: BrowserType.launch`].
|
||||||
|
|
||||||
:::note
|
:::note
|
||||||
Unless [`option: downloadsPath`] is set, downloaded files are deleted when the browser context that produced them is closed.
|
Downloaded files are deleted when the browser context that produced them is closed.
|
||||||
:::
|
:::
|
||||||
|
|
||||||
Here is the simplest way to handle the file download:
|
Here is the simplest way to handle the file download:
|
||||||
|
|
|
||||||
3
types/types.d.ts
vendored
3
types/types.d.ts
vendored
|
|
@ -9259,8 +9259,7 @@ export interface Dialog {
|
||||||
* [Download] objects are dispatched by page via the
|
* [Download] objects are dispatched by page via the
|
||||||
* [page.on('download')](https://playwright.dev/docs/api/class-page#page-event-download) event.
|
* [page.on('download')](https://playwright.dev/docs/api/class-page#page-event-download) event.
|
||||||
*
|
*
|
||||||
* If `downloadsPath` isn't specified, all the downloaded files belonging to the browser context are deleted when the
|
* All the downloaded files belonging to the browser context are deleted when the browser context is closed.
|
||||||
* browser context is closed. And all downloaded files are deleted when the browser closes.
|
|
||||||
*
|
*
|
||||||
* Download event is emitted once the download starts. Download path becomes available once download completes:
|
* Download event is emitted once the download starts. Download path becomes available once download completes:
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue