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

18 Replies, 1336 Views

"Best way to interact with a Chrome extension using Puppeteer?"

Hey folks! đź‘‹

So, I’ve been banging my head against the wall trying to figure out how to *puppeteer interact with extension* for my tests. Like, is it even possible?

I found some old threads but nothing concrete. Anyone got a working example or some sneaky tips?

I know you can load the extension with `--load-extension`, but actually *using* it in tests? That’s where I’m stuck.

Do I need to inject scripts? Mess with the background page? Or is there some magic flag I’m missing?

Would love to hear if anyone’s cracked this! 🙏

(Also, if you’ve got code snippets, you’re my hero. 🦸‍♂️)

Thanks in advance!

Messages In This Thread
How can I use Puppeteer to interact with a Chrome extension in my tests? or Best way to interact with - by - 02-02-2025, 10:44 PM



Users browsing this thread: 1 Guest(s)