Latest

Testing Browser Extensions with Playwright (Chromium and Firefox)

Test Automation

Testing Browser Extensions with Playwright (Chromium and Firefox)

Playwright supports browser extension testing in Chromium (full support) and Firefox (experimental). Use chromium.launchPersistentContext() with --load-extension and --disable-extensions-except flags. For Firefox, launch with firefox.launchPersistentContext() and set firefox_profile preferences. Access the extension popup by navigating directly to its chrome-extension:// URL. Key Takeaways Use launchPersistentContext, not browser.newPage. Extensions

By HelpMeTest