Skip to content

Commit eba4899

Browse files
authored
docs: add warnings for Chrome remote debugging and user profile automation changes (#37052)
1 parent 8b8477b commit eba4899

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

docs/src/api/class-browsertype.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,10 @@ More details for
333333

334334
Note that browsers do not allow launching multiple instances with the same User Data Directory.
335335

336+
:::warning
337+
Chromium/Chrome: Due to recent Chrome policy changes, automating the default Chrome user profile is not supported. Pointing `userDataDir` to Chrome's main "User Data" directory (the profile used for your regular browsing) may result in pages not loading or the browser exiting. Create and use a separate directory (for example, an empty folder) as your automation profile instead. See https://developer.chrome.com/blog/remote-debugging-port for details.
338+
:::
339+
336340
### option: BrowserType.launchPersistentContext.-inline- = %%-shared-browser-options-list-v1.8-%%
337341
* since: v1.8
338342

packages/playwright-client/types/types.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14761,6 +14761,13 @@ export interface BrowserType<Unused = {}> {
1476114761
* **parent** directory of the "Profile Path" seen at `chrome://version`.
1476214762
*
1476314763
* Note that browsers do not allow launching multiple instances with the same User Data Directory.
14764+
*
14765+
* **NOTE** Chromium/Chrome: Due to recent Chrome policy changes, automating the default Chrome user profile is not
14766+
* supported. Pointing `userDataDir` to Chrome's main "User Data" directory (the profile used for your regular
14767+
* browsing) may result in pages not loading or the browser exiting. Create and use a separate directory (for example,
14768+
* an empty folder) as your automation profile instead. See https://developer.chrome.com/blog/remote-debugging-port
14769+
* for details.
14770+
*
1476414771
* @param options
1476514772
*/
1476614773
launchPersistentContext(userDataDir: string, options?: {

packages/playwright-core/types/types.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14761,6 +14761,13 @@ export interface BrowserType<Unused = {}> {
1476114761
* **parent** directory of the "Profile Path" seen at `chrome://version`.
1476214762
*
1476314763
* Note that browsers do not allow launching multiple instances with the same User Data Directory.
14764+
*
14765+
* **NOTE** Chromium/Chrome: Due to recent Chrome policy changes, automating the default Chrome user profile is not
14766+
* supported. Pointing `userDataDir` to Chrome's main "User Data" directory (the profile used for your regular
14767+
* browsing) may result in pages not loading or the browser exiting. Create and use a separate directory (for example,
14768+
* an empty folder) as your automation profile instead. See https://developer.chrome.com/blog/remote-debugging-port
14769+
* for details.
14770+
*
1476414771
* @param options
1476514772
*/
1476614773
launchPersistentContext(userDataDir: string, options?: {

0 commit comments

Comments
 (0)