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

20 Replies, 1908 Views

Hey! I feel your pain. Puppeteer interact with extension can be a real headache, especially with the lack of clear docs.

What worked for me was loading the extension via the `--load-extension` flag when launching the browser. Then, you can use `page.evaluate()` to interact with the extension's DOM.

For popups, try targeting the extension's popup HTML directly. Itโ€™s not perfect, but itโ€™s a start. Good luck! ๐Ÿ€

Messages In This Thread



Users browsing this thread: 1 Guest(s)