use-apify.com
Puppeteer: guides & tutorials
Control Chrome and Firefox from Node via CDP: fast headless runs, PDF/screenshots, and DevTools-style automation for targeted scraping on Apify.
4 articles
View all tags
Puppeteer controls Chrome and Firefox from Node.js over the DevTools Protocol, giving fast headless automation for screenshots, PDFs, and scraping dynamic pages. These guides cover navigation, waiting for content, and intercepting network requests.
Puppeteer suits targeted Chrome-based scraping, while Playwright adds cross-browser support for broader needs. Pair either with proxies and Crawlee queuing for scale, then deploy as Apify browser actors. Below you will find tutorials and anti-blocking patterns for reliable headless runs.

A headless browser is a full web browser (Chromium, Firefox, or WebKit) that runs without a graphical interface. It executes JavaScript, renders HTML/CSS, handles cookies, and behaves exactly like a visible browser — but can be controlled programmatically and runs on servers without a display.
For web scraping, headless browsers are the solution for sites that don't work with simple HTTP requests.

For new scraping projects in 2026, Playwright wins: it runs Chromium, Firefox, and WebKit from one install with built-in auto-wait and trace viewer, hitting ~35–55 pages/min sequentially on static URLs. Puppeteer 25 is a tighter Chrome/Firefox CDP wrapper with WebDriver BiDi support and lower idle RAM. Selenium 4 still leads when WebDriver Grid, Java/C#, or BiDi network logging are non-negotiable.
If you are choosing a driver for web scraping and automation in 2026, the decision is mostly about protocol, waiting model, and browser coverage—not brand loyalty. This guide compares Selenium, Playwright, and Puppeteer feature by feature, sketches realistic performance expectations, shows minimal starter code for each, and ends with Playwright on Apify Crawlee as the default production path.
Quick verdict
Playwright is the best choice for web scraping in 2026 — faster than Selenium, better supported than Puppeteer, with built-in auto-waiting and multi-browser support. Selenium 4 is best for legacy test suites or BiDi-mandated environments.
Use Puppeteer when you are Chrome-only (or Chrome + Firefox via BiDi), Node-only, and want a minimal CDP wrapper. Use Selenium when you must integrate with existing WebDriver-based QA, non-Node stacks, or Selenium Grid that already standardised on WebDriver.