docs: mention empty string in userDataDir (#9069)

This commit is contained in:
Szymon Marczak 2021-09-27 21:50:35 +02:00 committed by GitHub
parent 8dc8777ab4
commit 44c3b0270e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -244,7 +244,8 @@ this context will automatically close the browser.
Path to a User Data Directory, which stores browser session data like cookies and local storage. More details for
[Chromium](https://chromium.googlesource.com/chromium/src/+/master/docs/user_data_dir.md#introduction) and
[Firefox](https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options#User_Profile).
Note that Chromium's user data directory is the **parent** directory of the "Profile Path" seen at `chrome://version`.
Note that Chromium's user data directory is the **parent** directory of the "Profile Path" seen at `chrome://version`. Pass an empty string to
use a temporary directory instead.
### option: BrowserType.launchPersistentContext.-inline- = %%-shared-browser-options-list-%%
### option: BrowserType.launchPersistentContext.slowMo = %%-browser-option-slowmo-%%

3
types/types.d.ts vendored
View File

@ -9656,7 +9656,8 @@ export interface BrowserType<Unused = {}> {
* context will automatically close the browser.
* @param userDataDir Path to a User Data Directory, which stores browser session data like cookies and local storage. More details for [Chromium](https://chromium.googlesource.com/chromium/src/+/master/docs/user_data_dir.md#introduction) and
* [Firefox](https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options#User_Profile). Note that Chromium's user
* data directory is the **parent** directory of the "Profile Path" seen at `chrome://version`.
* data directory is the **parent** directory of the "Profile Path" seen at `chrome://version`. Pass an empty string to use
* a temporary directory instead.
* @param options
*/
launchPersistentContext(userDataDir: string, options?: {