Chapter 11: Working with the Playwright Framework
As highlighted in Chapter 3, Top Web Test Automation Frameworks, Playwright is among the newest and most modern frontend test automation frameworks. Being built on top of CDP (the Chrome Debugger Protocol) allows the framework to acquire the deep coverage and testing abilities of any web application across all browser types. With CDP (https://chromedevtools.github.io/devtools-protocol/), frontend web application developers can better inspect their web applications, debug them, cover the network and performance aspects of the app, scan the app for accessibility and PWA compliance, and much more besides. As opposed to the Cypress and Google Puppeteer frameworks, which only come with JavaScript and TypeScript language support, Playwright comes with more language binding support, including Python, Java, and .NET.
The framework is maintained by Microsoft and led by the same team that built the Google Puppeteer framework. With rich built...