Advantages and Disadvantages between Cypress and Playwright

As a test engineer I have been using WebdriverIO with Selenium WebDriver for frontend automation for a few years.

Recently I got an opportunity to move away from Selenium and therefore had to compare alternatives (inside my usual stack of TypeScript and Node.js):

Puppeteer did not hit my shortlist because it is only an API (Chrome DevTools Protocol) to control Chromium and it needs additional testing framework (Jest, Mocha or something else). WebdriverIO can also work by DevTools Protocol, but I wanted to try something different.

Disclaimer: all listed pros and cons are subjective and based on my own experience.

Cypress

Advantages:

Curious features:

Disadvantages:

Playwright

Advantages:

Curious or controversial features:

Disadvantages:

Playwright in Debug Mode
Playwright in Debug Mode

Playwright is a more technical tool, which works closer to the browser and has precise commands. Cypress is a more flexible tool with an expectable API for testers, which allows to develop tests easy and fast enough.

--

--

Quality assurance engineer: I’m testing web applications, APIs and doing automation testing.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Andrey Enin

Quality assurance engineer: I’m testing web applications, APIs and doing automation testing.