docs: note that user data dir is a parent of profile path (#5262)
Copied from https://chromium.googlesource.com/chromium/src/+/master/docs/user_data_dir.md#current-location to help users that copy "Profile Path" to be used as user data dir.
This commit is contained in:
parent
6c12f58058
commit
d96c547389
|
|
@ -212,8 +212,9 @@ this context will automatically close the browser.
|
||||||
- `userDataDir` <[path]>
|
- `userDataDir` <[path]>
|
||||||
|
|
||||||
Path to a User Data Directory, which stores browser session data like cookies and local storage. More details for
|
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) and
|
[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).
|
[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`.
|
||||||
|
|
||||||
### option: BrowserType.launchPersistentContext.headless
|
### option: BrowserType.launchPersistentContext.headless
|
||||||
- `headless` <[boolean]>
|
- `headless` <[boolean]>
|
||||||
|
|
|
||||||
5
types/types.d.ts
vendored
5
types/types.d.ts
vendored
|
|
@ -6256,8 +6256,9 @@ export interface BrowserType<Browser> {
|
||||||
*
|
*
|
||||||
* Launches browser that uses persistent storage located at `userDataDir` and returns the only context. Closing this
|
* Launches browser that uses persistent storage located at `userDataDir` and returns the only context. Closing this
|
||||||
* context will automatically close the browser.
|
* 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) and
|
* @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).
|
* [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`.
|
||||||
* @param options
|
* @param options
|
||||||
*/
|
*/
|
||||||
launchPersistentContext(userDataDir: string, options?: {
|
launchPersistentContext(userDataDir: string, options?: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue