How can I use Puppeteer to interact with a browser extension effectively?

20 Replies, 1904 Views

Hey! I had the same issue. Puppeteer interact with extension is not straightforward, but here’s what I did:

1. Load the extension using `--load-extension`.
2. Use `page.goto('chrome-extension://<id>/popup.html')` to open the popup.
3. Interact with the DOM using `page.$()` and `page.evaluate()`.

It’s not perfect, but it works. Let me know if you need more details!

Messages In This Thread



Users browsing this thread: 1 Guest(s)