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

20 Replies, 1919 Views

Hey! I’ve been there. Puppeteer interact with extension is tricky, but loading the extension first is the right approach.

For popups, try this:
`await page.goto('chrome-extension://<EXTENSION_ID>/popup.html')`
Then use `page.click()` or `page.type()` to interact with elements.

Also, this thread on Stack Overflow helped me a lot: [Puppeteer + Extensions](https://stackoverflow.com). Good luck!

Messages In This Thread



Users browsing this thread: 1 Guest(s)