I'm a fan of Cypress for end to end testing (E2E), but I'm wondering about the Playwright project from Microsoft.
Headless execution is supported for all the browsers on all platforms. Check out system requirements for details.
npm i -D playwright
This installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can
require Playwright in a Node.js script and automate web browser interactions.
Playwright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.
- Scenarios that span multiple page, domains and iframes
- Auto-wait for elements to be ready…
It's essentially cross-browser Puppeteer from what I've understood and there are some new goodies in the 1.4 release.
I'm going to take it for a spin, but curious if others on DEV have used it.
Drop your comments, posts or whatever you got in the discussion below.