How can I use Puppeteer to interact with a browser extension? Tips and examples needed!

8 Replies, 1257 Views

Hey there! I’ve been working on puppeteer interact with extension stuff for a while now. Loading a custom extension is possible—just use the `--disable-extensions-except` and `--load-extension` flags when launching the browser.

For testing the popup, I usually inject some JS to trigger the popup and then interact with it using Puppeteer’s API. It’s not perfect, but it gets the job done.

If you’re stuck, this tool called [Extensionizr](https://extensionizr.com/) might help you set up your extension for testing. Cheers!

Messages In This Thread



Users browsing this thread: 1 Guest(s)