2

Playwright seems to default in incognito mode and I would like to disable this so that I can have cookies remain consistent when navigating different web pages.

I've scavenged the entire Playwright documentation and they state that a new browser context defaults to incognito but did not provide a way to disable this option.

dracoDevs
  • 75
  • 1
  • 7
  • Does this answer your question? [How to use installed version of chrome in Playwright?](https://stackoverflow.com/questions/62281859/how-to-use-installed-version-of-chrome-in-playwright) – Christian Baumann May 27 '22 at 08:27
  • Not quite because I don't mind using Chromium. I want to use a non-incognito page context with Chromium. @ChristianBaumann – dracoDevs May 29 '22 at 14:59

1 Answers1

1

You can use launchPersistentContext to create new context in normal mode

RoseQuartz
  • 25
  • 4
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Luciana Oliveira Mar 21 '23 at 17:25