Ranked #4 on HN at the moment and no comments. So I'll just say hi. (Selenium project creator here. I had nothing to do with this announcement, but feel free to ask me anything!) My hot take on things: When the Puppeteer team left Google to join Microsoft and continue the project as Playwright, that left Google high and dry. I don't think Google truly realized how complementary a browser automation tool is to an AI-a…
is it possible to now use Puppeteer from inside the browser? or do security concerns restrict this? what does Webdriver Bidi do and what do you mean by "taking the good stuff from CDP" I don't want to run my scrapes in the cloud and pay a monthly fee I want to run them locally. I want to run LLM locally too. I'm sick of SaaS
There is a extension api that exposes a CDP connection [1][2]
You can create a Puppeteer.Browser given a CDP connection.
You can bundle Puppeteer in a browser (we do this in Lighthouse/Chrome DevTools[3]).
These two things is probably enough to get it working, though it may be limited to the active tab.
[1] https://chromedevtools.github.io/devtools-protocol/#:~:text=...
[2] https://stackoverflow.com/a/55284340/24042444
[3] https://source.chromium.org/chromium/chromium/src/+/main:thi...