I would like to handle this popping out dialog in Firefox browser and allow storing data in persistent storage in Playwright's E2E tests.

Dialog with persistent storage question

Currently, this lack of permission interrupts my tests. How can I configure it in Playwright to allow it by default?

1 Answer 1


To allow storing data in persistent storage by default, it needs to be configured in playwright.config.js file. It needs to be configured like this under projects section:

projects: [
    name: 'firefox',
    use: {
      browserName: 'firefox',
      launchOptions: {
        firefoxUserPrefs: {
          'permissions.default.persistent-storage': 1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.