I'm a fan of Cypress for end to end testing (E2E), but I'm wondering about the Playwright project from Microsoft.
Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API. Playwright is built to enable cross-browser web automation that is ever-green, capable, reliable and fast.
Headless execution is supported for all the browsers on all platforms. Check out system requirements for details.
Playwright has its own test runner for end-to-end tests, we call it Playwright Test.
Using init command
The easiest way to get started with Playwright Test is to run the init command.
# Run from your project's root directory npm init playwright@latest # Or create a new project npm init playwright@latest new-project
This will create a configuration file…
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.