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

8 Replies, 1265 Views

Puppeteer interact with extension is definitely a niche topic, but it’s possible! I’ve had success using the `puppeteer-extra` package with the `puppeteer-extra-plugin-user-preferences` plugin. It lets you load extensions without too much hassle.

For interacting with the popup, try using `page.goto()` with the extension’s popup URL. It’s a bit of a workaround, but it works.

Also, this Stack Overflow thread ([Puppeteer and Chrome Extensions](https://stackoverflow.com/example)) has some great code snippets. Worth a look!

Messages In This Thread



Users browsing this thread: 1 Guest(s)