Why not just test the extension directly?
Puppeteer’s great, but for extensions, consider using Chrome’s extension testing framework.
If you’re dead set on puppeteer interact with extension, though, the background page trick others mentioned is the way.
Puppeteer’s great, but for extensions, consider using Chrome’s extension testing framework.
If you’re dead set on puppeteer interact with extension, though, the background page trick others mentioned is the way.
