Puppeteer: Automate Browsers
Get browser automation with Puppeteer. For founders who need reliable testing and automation tools.
94,447 stars9,425 forksTypeScriptQuality 8/10Updated 6/5/2026100% free ยท open source Puppeteer is a browser automation tool that allows you to control Chrome or Firefox programmatically for reliable testing and scraping workflows.
- โขYou need to automate user interactions on your web app for testing purposes
- โขYou want to scrape data from websites that use a lot of JavaScript
- โขYou need to generate PDFs or screenshots of web pages programmatically
- 1Launch a browser instance with `const browser = await puppeteer.launch();`
- 2Create a new page with `const page = await browser.newPage();`
- 3Navigate to a webpage with `await page.goto('https://example.com');`
- 4Take a screenshot with `await page.screenshot({ path: 'example.png' });`
- 5Close the browser instance with `await browser.close();`
Ready-to-paste prompt await page.evaluate(() => document.querySelector('title').textContent); // Retrieves the title of the current pageHeads up: Ensure you have the correct version of Node.js installed, as Puppeteer requires at least Node.js 14.17.0
Saves to your device
Topics
automation
chrome
chromium
developer-tools
firefox
headless-chrome
node-module
testing
web