diff --git a/docs/src/api/params.md b/docs/src/api/params.md index 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.ts index 330f0cfa51..17ed68156e 100644 --- a/types/types.d.ts +++ b/types/types.d.ts @@ -8289,7 +8289,8 @@ export interface BrowserType { /** * 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 { /** * 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;