Search⌘ K

Getting Started with the Puppeteer Framework

Learn to programmatically control Chrome browsers for UI testing, performance monitoring, and traffic analysis with Google Puppeteer.

Puppeteer is an open-source node library and framework developed by Google that is based on the CDP. It allows web application developers to control headless or headed Chrome browsers through high-level APIs over the above-mentioned CDP or DevTools protocol. Puppeteer and Playwright share the same architecture and CDP to create and run tests.

Unlike Selenium and Cypress, Puppeteer only supports Chrome and Chromium-based browsers, which means that testing end-to-end across all other browsers, such as WebKit Safari and Mozilla Firefox, isn’t supported.

Core capabilities of Puppeteer

Below are the core capabilities of Puppeteer:

  • Generating screenshots and PDFs of website pages ...