"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!
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!
