Now that I got my snarky remark out of the way:
Puppeteer uses CDP under the hood. Just use Puppeteer.
Now that I got my snarky remark out of the way:
Puppeteer uses CDP under the hood. Just use Puppeteer.
I don't know how well it would work for that use-case, but I've used it before, for example, to write a web-crawler that could handle client-side rendering.
We're currently using Cypress for some automated testing on a recent project and its extremely brittle. Considering moving to playwright or puppeteer but not sure if that will fix the brittleness.
we plan to use rr-web and maybe browsertrix for our website archival / replay system for deterministic evals.
So, definitely more useful if you care about more than just your main thread.
It is also just really easy to write a performant test suite with Playwright, it is easy to parallelize, which is terrible in Cypress, almost intentionally so to sell their cloud products, which you do not need. The way Playwright works just feels more intuitive and stable to me.
Playwright's "trace" viewer is also fantastic providing periodic snapshots and performance debugging.