puppeteer-core
A high-level API to control headless Chrome over the DevTools Protocol
Last updated 4 years ago by google-wombot .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install puppeteer-core 
SYNC missed versions from official npm registry.

Puppeteer

build npm puppeteer package

Puppeteer is a Node.js library which provides a high-level API to control Chrome or Firefox over the DevTools Protocol or WebDriver BiDi. Puppeteer runs in the headless (no visible UI) by default but can be configured to run in a visible ("headful") browser.

Get started | API | FAQ | Contributing | Troubleshooting

Installation

npm i puppeteer # Downloads compatible Chrome during installation.
npm i puppeteer-core # Alternatively, install as a library, without downloading Chrome.

Example

import puppeteer from 'puppeteer'; // or import puppeteer from 'puppeteer-core';

// Launch the browser and open a new blank page
const browser = await puppeteer.launch();
const page = await browser.newPage();

// Navigate the page to a URL.
await page.goto('https://developer.chrome.com/');

// Set screen size.
await page.setViewport({width: 1080, height: 1024});

// Type into search box.
await page.type('.devsite-search-field', 'automate beyond recorder');

// Wait and click on first result.
const searchResultSelector = '.devsite-result-item-link';
await page.waitForSelector(searchResultSelector);
await page.click(searchResultSelector);

// Locate the full title with a unique string.
const textSelector = await page.waitForSelector('text/Customize and automate');
const fullTitle = await textSelector?.evaluate(el => el.textContent);

// Print the full title.
console.log('The title of this blog post is "%s".', fullTitle);

await browser.close();

Current Tags

  • 1.7.0                                ...           chrome-70 (6 years ago)
  • 1.9.0                                ...           chrome-71 (6 years ago)
  • 1.11.0                                ...           chrome-72 (6 years ago)
  • 1.12.2                                ...           chrome-73 (6 years ago)
  • 1.13.0                                ...           chrome-74 (6 years ago)
  • 1.15.0                                ...           chrome-75 (6 years ago)
  • 1.17.0                                ...           chrome-76 (5 years ago)
  • 1.19.0                                ...           chrome-77 (5 years ago)
  • 1.20.0                                ...           chrome-78 (5 years ago)
  • 2.0.0                                ...           chrome-79 (5 years ago)
  • 2.1.0                                ...           chrome-80 (5 years ago)
  • 3.0.0                                ...           chrome-81 (5 years ago)
  • 3.1.0                                ...           chrome-83 (4 years ago)
  • 5.1.0                                ...           chrome-84 (4 years ago)
  • 5.2.1                                ...           chrome-85 (4 years ago)
  • 5.3.1                                ...           chrome-86 (4 years ago)
  • 23.5.1                                ...           latest (a month ago)

240 Versions

  • 23.5.1                                ...           a month ago
  • 23.5.0                                ...           a month ago
  • 23.4.1                                ...           2 months ago
  • 23.4.0                                ...           2 months ago
  • 23.3.1                                ...           2 months ago
  • 23.3.0                                ...           2 months ago
  • 23.2.2                                ...           2 months ago
  • 23.2.1                                ...           3 months ago
  • 23.2.0                                ...           3 months ago
  • 23.1.1                                ...           3 months ago
  • 23.1.0                                ...           3 months ago
  • 23.0.2                                ...           3 months ago
  • 23.0.1                                ...           3 months ago
  • 23.0.0                                ...           3 months ago
  • 22.15.0                                ...           3 months ago
  • 22.14.0                                ...           4 months ago
  • 22.13.1                                ...           4 months ago
  • 22.13.0                                ...           4 months ago
  • 22.12.1                                ...           5 months ago
  • 22.12.0                                ...           5 months ago
  • 22.11.2                                ...           5 months ago
  • 22.11.1                                ...           5 months ago
  • 22.11.0                                ...           5 months ago
  • 22.10.1                                ...           5 months ago
  • 22.10.0                                ...           6 months ago
  • 22.9.0                                ...           6 months ago
  • 22.8.2                                ...           6 months ago
  • 22.8.1                                ...           6 months ago
  • 22.8.0                                ...           6 months ago
  • 22.7.1                                ...           7 months ago
  • 22.7.0                                ...           7 months ago
  • 22.6.5                                ...           7 months ago
  • 22.6.4                                ...           7 months ago
  • 22.6.3                                ...           7 months ago
  • 22.6.2                                ...           7 months ago
  • 22.6.1                                ...           8 months ago
  • 22.6.0                                ...           8 months ago
  • 22.5.0                                ...           8 months ago
  • 22.4.1                                ...           8 months ago
  • 22.4.0                                ...           8 months ago
  • 22.3.0                                ...           9 months ago
  • 22.2.0                                ...           9 months ago
  • 22.1.0                                ...           9 months ago
  • 22.0.0                                ...           9 months ago
  • 21.11.0                                ...           9 months ago
  • 21.10.0                                ...           10 months ago
  • 21.9.0                                ...           10 months ago
  • 21.8.0                                ...           10 months ago
  • 21.7.0                                ...           10 months ago
  • 21.6.1                                ...           a year ago
  • 21.6.0                                ...           a year ago
  • 21.5.2                                ...           a year ago
  • 21.5.1                                ...           a year ago
  • 21.5.0                                ...           a year ago
  • 21.4.1                                ...           a year ago
  • 21.4.0                                ...           a year ago
  • 21.3.8                                ...           a year ago
  • 21.3.7                                ...           a year ago
  • 21.3.6                                ...           a year ago
  • 21.3.5                                ...           a year ago
  • 21.3.4                                ...           a year ago
  • 21.3.3                                ...           a year ago
  • 21.3.2                                ...           a year ago
  • 21.3.1                                ...           a year ago
  • 21.3.0                                ...           a year ago
  • 21.2.1                                ...           a year ago
  • 21.2.0                                ...           a year ago
  • 21.1.1                                ...           a year ago
  • 21.1.0                                ...           a year ago
  • 21.0.3                                ...           a year ago
  • 21.0.2                                ...           a year ago
  • 21.0.1                                ...           a year ago
  • 21.0.0                                ...           a year ago
  • 20.9.0                                ...           a year ago
  • 20.8.3                                ...           a year ago
  • 20.8.2                                ...           a year ago
  • 20.8.1                                ...           a year ago
  • 20.8.0                                ...           a year ago
  • 20.7.4                                ...           a year ago
  • 20.7.3                                ...           a year ago
  • 20.7.2                                ...           a year ago
  • 20.7.1                                ...           a year ago
  • 20.7.0                                ...           a year ago
  • 20.6.0                                ...           a year ago
  • 20.5.0                                ...           a year ago
  • 20.4.0                                ...           a year ago
  • 20.3.0                                ...           a year ago
  • 20.2.1                                ...           a year ago
  • 20.2.0                                ...           2 years ago
  • 20.1.2                                ...           2 years ago
  • 20.1.1                                ...           2 years ago
  • 20.1.0                                ...           2 years ago
  • 20.0.0                                ...           2 years ago
  • 19.11.1                                ...           2 years ago
  • 19.11.0                                ...           2 years ago
  • 19.10.1                                ...           2 years ago
  • 19.10.0                                ...           2 years ago
  • 19.9.1                                ...           2 years ago
  • 19.9.0                                ...           2 years ago
  • 19.8.5                                ...           2 years ago
  • 19.8.4                                ...           2 years ago
  • 19.8.3                                ...           2 years ago
  • 19.8.1                                ...           2 years ago
  • 19.8.0                                ...           2 years ago
  • 19.7.5                                ...           2 years ago
  • 19.7.4                                ...           2 years ago
  • 19.7.3                                ...           2 years ago
  • 19.7.2                                ...           2 years ago
  • 19.7.1                                ...           2 years ago
  • 19.7.0                                ...           2 years ago
  • 19.6.3                                ...           2 years ago
  • 19.6.2                                ...           2 years ago
  • 19.6.1                                ...           2 years ago
  • 19.6.0                                ...           2 years ago
  • 19.5.2                                ...           2 years ago
  • 19.5.1                                ...           2 years ago
  • 19.5.0                                ...           2 years ago
  • 19.4.1                                ...           2 years ago
  • 19.4.0                                ...           2 years ago
  • 19.3.0                                ...           2 years ago
  • 19.2.2                                ...           2 years ago
  • 19.2.1                                ...           2 years ago
  • 19.2.0                                ...           2 years ago
  • 19.1.1                                ...           2 years ago
  • 19.1.0                                ...           2 years ago
  • 19.0.0                                ...           2 years ago
  • 18.2.1                                ...           2 years ago
  • 18.2.0                                ...           2 years ago
  • 18.1.0                                ...           2 years ago
  • 18.0.5                                ...           2 years ago
  • 18.0.4                                ...           2 years ago
  • 18.0.3                                ...           2 years ago
  • 18.0.2                                ...           2 years ago
  • 18.0.1                                ...           2 years ago
  • 18.0.0                                ...           2 years ago
  • 17.1.3                                ...           2 years ago
  • 17.1.2                                ...           2 years ago
  • 17.1.1                                ...           2 years ago
  • 17.1.0                                ...           2 years ago
  • 17.0.0                                ...           2 years ago
  • 16.2.0                                ...           2 years ago
  • 16.1.1                                ...           2 years ago
  • 16.1.0                                ...           2 years ago
  • 16.0.0                                ...           2 years ago
  • 15.5.0                                ...           2 years ago
  • 15.4.2                                ...           2 years ago
  • 15.4.1                                ...           2 years ago
  • 15.4.0                                ...           2 years ago
  • 15.3.2                                ...           2 years ago
  • 15.3.1                                ...           2 years ago
  • 15.3.0                                ...           2 years ago
  • 15.2.0                                ...           2 years ago
  • 15.1.1                                ...           2 years ago
  • 15.1.0                                ...           2 years ago
  • 15.0.2                                ...           2 years ago
  • 15.0.1                                ...           2 years ago
  • 15.0.0                                ...           2 years ago
  • 14.4.1                                ...           2 years ago
  • 14.4.0                                ...           2 years ago
  • 14.3.0                                ...           2 years ago
  • 14.2.1                                ...           2 years ago
  • 14.2.0                                ...           2 years ago
  • 14.1.2                                ...           2 years ago
  • 14.1.1                                ...           2 years ago
  • 14.1.0                                ...           3 years ago
  • 14.0.0                                ...           3 years ago
  • 13.7.0                                ...           3 years ago
  • 13.6.0                                ...           3 years ago
  • 13.5.2                                ...           3 years ago
  • 13.5.1                                ...           3 years ago
  • 13.5.0                                ...           3 years ago
  • 13.4.1                                ...           3 years ago
  • 13.4.0                                ...           3 years ago
  • 13.3.2                                ...           3 years ago
  • 13.3.1                                ...           3 years ago
  • 13.3.0                                ...           3 years ago
  • 13.2.0                                ...           3 years ago
  • 13.1.3                                ...           3 years ago
  • 13.1.2                                ...           3 years ago
  • 13.1.1                                ...           3 years ago
  • 13.1.0                                ...           3 years ago
  • 13.0.1                                ...           3 years ago
  • 13.0.0                                ...           3 years ago
  • 12.0.1                                ...           3 years ago
  • 12.0.0                                ...           3 years ago
  • 11.0.0                                ...           3 years ago
  • 10.4.0                                ...           3 years ago
  • 10.2.0                                ...           3 years ago
  • 10.1.0                                ...           3 years ago
  • 10.0.0                                ...           3 years ago
  • 9.1.1                                ...           4 years ago
  • 9.1.0                                ...           4 years ago
  • 9.0.0                                ...           4 years ago
  • 8.0.0                                ...           4 years ago
  • 7.1.0                                ...           4 years ago
  • 7.0.4                                ...           4 years ago
  • 7.0.3                                ...           4 years ago
  • 7.0.2                                ...           4 years ago
  • 7.0.1                                ...           4 years ago
  • 7.0.0                                ...           4 years ago
  • 6.0.0                                ...           4 years ago
  • 5.5.0                                ...           4 years ago
  • 5.4.1                                ...           4 years ago
  • 5.4.0                                ...           4 years ago
  • 5.3.1                                ...           4 years ago
  • 5.3.0                                ...           4 years ago
  • 5.2.1                                ...           4 years ago
  • 5.2.0                                ...           4 years ago
  • 5.1.0                                ...           4 years ago
  • 5.0.0                                ...           4 years ago
  • 4.0.1                                ...           4 years ago
  • 4.0.0                                ...           4 years ago
  • 3.3.0                                ...           4 years ago
  • 3.2.0                                ...           4 years ago
  • 3.1.0                                ...           4 years ago
  • 3.0.4                                ...           5 years ago
  • 3.0.3                                ...           5 years ago
  • 3.0.2                                ...           5 years ago
  • 3.0.1                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 2.1.1                                ...           5 years ago
  • 2.1.0                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.20.0                                ...           5 years ago
  • 1.19.0                                ...           5 years ago
  • 1.18.1                                ...           5 years ago
  • 1.18.0                                ...           5 years ago
  • 1.17.0                                ...           5 years ago
  • 1.16.0                                ...           6 years ago
  • 1.15.0                                ...           6 years ago
  • 1.14.0                                ...           6 years ago
  • 1.13.0                                ...           6 years ago
  • 1.12.2                                ...           6 years ago
  • 1.12.1                                ...           6 years ago
  • 1.12.0                                ...           6 years ago
  • 1.11.0                                ...           6 years ago
  • 1.10.0                                ...           6 years ago
  • 1.9.0                                ...           6 years ago
  • 1.8.0                                ...           6 years ago
  • 1.7.0                                ...           6 years ago
Downloads
Total 2
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (12)
Dev Dependencies (40)

© 2010 - cnpmjs.org x YWFE | Home | YWFE