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: clarify download lifetime when downloadsPath is specified (#8227)
Yury Semikhatsky434d07e711c4
diff --git a/docs/src/api/params.md b/docs/src/api/params.mdindex 41fad4a2e7..21ef65b379 100644--- a/docs/src/api/params.md+++ b/docs/src/api/params.md@@ -667,7 +667,8 @@ Enable Chromium sandboxing. Defaults to `false`.- `downloadsPath` <[path]>If specified, accepted downloads are downloaded into this directory. Otherwise, temporary directory is created and is-deleted when browser is closed.+deleted when browser is closed. In either case, the downloads are deleted when the browser context they were created in+is closed.## browser-option-executablepath- `executablePath` <[path]>diff --git a/types/types.d.ts b/types/types.d.tsindex 330f0cfa51..17ed68156e 100644--- a/types/types.d.ts+++ b/types/types.d.ts@@ -8289,7 +8289,8 @@ export interface BrowserType<Unused = {}> {/*** If specified, accepted downloads are downloaded into this directory. Otherwise, temporary directory is created and is- * deleted when browser is closed.+ * deleted when browser is closed. In either case, the downloads are deleted when the browser context they were created in+ * is closed.*/downloadsPath?: string;@@ -8626,7 +8627,8 @@ export interface BrowserType<Unused = {}> {/*** If specified, accepted downloads are downloaded into this directory. Otherwise, temporary directory is created and is- * deleted when browser is closed.+ * deleted when browser is closed. In either case, the downloads are deleted when the browser context they were created in+ * is closed.*/downloadsPath?: string;@@ -12665,7 +12667,8 @@ export interface LaunchOptions {/*** If specified, accepted downloads are downloaded into this directory. Otherwise, temporary directory is created and is- * deleted when browser is closed.+ * deleted when browser is closed. In either case, the downloads are deleted when the browser context they were created in+ * is closed.*/downloadsPath?: string;