Chapter 12: Working with the Puppeteer Framework
As highlighted in Chapter 3, Top Web Test Automation Frameworks, Google Puppeteer is the baseline framework that was built by the Microsoft team that is now responsible for Playwright. Both frameworks are node libraries based on the CDP, and that obviously allows the Puppeteer framework to acquire deep coverage and testing abilities for any web application. Unlike the Playwright framework, which supports most web browsers as well as other language bindings, Google's Puppeteer framework only works on Chromium-based browsers and only supports JavaScript.
The framework runs by default in Headless mode, but can also be run with the browser UI (in Headed mode). With rich built-in capabilities that support the generation of screenshots and PDFs from web pages, network HAR file creation, and the automation of complex web applications, including keyboard inputs, UI, capturing timeline traces of the website under test, and much more...