Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs: fix the downloadsPath docs (#7726)
Pavel Feldman1ab41babb1c6
diff --git a/docs/src/api/class-download.md b/docs/src/api/class-download.mdindex d5b4ba336d..5b5d0903f6 100644--- a/docs/src/api/class-download.md+++ b/docs/src/api/class-download.md@@ -2,8 +2,8 @@[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-browser context is closed. And all downloaded files are deleted when the browser closes.+All the downloaded files belonging to the browser context are deleted when the+browser context is closed.Download event is emitted once the download starts. Download path becomes available once download completes:diff --git a/docs/src/downloads.md b/docs/src/downloads.mdindex 065d2c3a10..d9cd353019 100644--- a/docs/src/downloads.md+++ b/docs/src/downloads.md@@ -14,7 +14,7 @@ can obtain the download url, file system path and payload stream using the [DownYou can specify where to persist downloaded files using the [`option: downloadsPath`] option in [`method: BrowserType.launch`].:::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:diff --git a/types/types.d.ts b/types/types.d.tsindex 428ca1c6b2..ea9f4c7fd4 100644--- a/types/types.d.ts+++ b/types/types.d.ts@@ -9259,8 +9259,7 @@ export interface Dialog {* [Download] objects are dispatched by page via the* [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- * browser context is closed. And all downloaded files are deleted when the browser closes.+ * All the downloaded files belonging to the browser context are deleted when the browser context is closed.** Download event is emitted once the download starts. Download path becomes available once download completes:*