Playwright vs Puppeteer

Profile picture for user arilio666

Today, we will discuss two open-source tools, Playwright from Microsoft and another one is Puppeteer from Google. 

The Playwright was started in 2020 after Microsoft hired the top two contributors of Puppeteer.Puppeteer started as an official google project in 2017.
Supported Languages
Playwright supports Java, Python, .Net C#, JavaScript, and TypeScript.
Puppeteer supports only JavaScript.
Browser Support
Playwright supports three browser engines: Chromium, Firefox, and WebKit. Chromium includes the browsers Opera, Chrome, and Edge. Gecko Driver supports Firefox and Webkit is behind Apple Safari.    
Firefox, Chrome and Chromium
Test Framework
The Playwright supports Mocha, Jest, Jasmine, and AVA.  
Puppeteer supports generic javascript test framework like Jest or Mocha.
Grid Support
Playwright supports sauce labs with Good Documentation.
Puppeteer grid support is under development. The only help is via your own docker.

Conceptual DifferencePlaywright leans heavily on the concept of browser contexts. Puppeteer controls Chrome using the nonstandard DevTools protocol and talks to the browser directly.
WaitsBetter support for Automatic WaitsLess Support for Automatic Waits
DocumentationGoodBetter Official Documentation than Playwright
LocatorsBetter SupportLimited Support
GitHub StatsAs of May 24, 2022, 38.3k starts and 1.7k forks on GitHubPuppeteer has more adoption than Playwright, with total stars of 78.1k and 8.3k forks.

We can not say which one is better since both tools are new and from top technology companies, we can expect anything in the future. However, Playwright is aggressive in delivering new features and evolved a lot within a couple of years.