Oh man, this is a pain. I got it working by injecting scripts into the extension’s popup.
You gotta first find the extension’s ID (check chrome://extensions), then:
```javascript
const extUrl = `chrome-extension://${extensionId}/popup.html`;
const page = await browser.newPage();
await page.goto(extUrl);
```
From there, you can puppeteer interact with extension elements like normal. Not perfect, but it works!
You gotta first find the extension’s ID (check chrome://extensions), then:
```javascript
const extUrl = `chrome-extension://${extensionId}/popup.html`;
const page = await browser.newPage();
await page.goto(extUrl);
```
From there, you can puppeteer interact with extension elements like normal. Not perfect, but it works!
