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 ...

Get A Frontend Web Developer’s Guide to Testing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.