How can I use Puppeteer to interact with a Chrome extension in my tests? or Best way to interact with

18 Replies, 1538 Views

Short answer: yes. Long answer: it’s a nightmare.

You’ll need to:
1. Load the extension (you got that part)
2. Either hack the background page or inject scripts into the popup.

I gave up and just mocked the extension in tests. Not ideal, but faster.

Messages In This Thread



Users browsing this thread: 1 Guest(s)