puppeteer-core
TypeScript icon, indicating that this package has built-in type declarations

24.7.2 • Public • Published

Puppeteer

build npm puppeteer package

Puppeteer is a JavaScript 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

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 using accessible input name.
await page.locator('aria/Search').fill('automate beyond recorder');

// Wait and click on first result.
await page.locator('.devsite-result-item-link').click();

// Locate the full title with a unique string.
const textSelector = await page
  .locator('text/Customize and automate')
  .waitHandle();
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();

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
24.7.229,680latest
1.12.219,632chrome-73
1.15.03,954chrome-75
1.20.03,847chrome-78
3.0.03,451chrome-81
3.1.01,787chrome-83
5.3.11,512chrome-86
5.2.11,391chrome-85
2.0.0531chrome-79
1.7.0482chrome-70
1.19.0377chrome-77
1.17.0113chrome-76
1.11.053chrome-72
1.9.030chrome-71
5.1.024chrome-84
2.1.024chrome-80
1.13.021chrome-74

Version History

VersionDownloads (Last 7 Days)Published
24.7.229,680
24.7.1113,216
24.7.085,892
24.6.1384,489
24.6.068,794
24.5.023,397
24.4.0201,097
24.3.122,806
24.3.040,507
24.2.131,014
24.2.041,748
24.1.162,543
24.1.031,430
24.0.09,459
23.11.1327,601
23.11.05,371
23.10.425,759
23.10.320,981
23.10.23,095
23.10.198,591
23.10.03,139
23.9.051,098
23.8.020,376
23.7.113,518
23.7.08,706
23.6.124,972
23.6.077,057
23.5.318,963
23.5.21,556
23.5.164,949
23.5.028,911
23.4.126,474
23.4.011,854
23.3.19,365
23.3.027,221
23.2.221,522
23.2.115,061
23.2.05,302
23.1.132,515
23.1.012,812
23.0.225,083
23.0.14,482
23.0.0373
22.15.0749,713
22.14.026,290
22.13.163,430
22.13.015,742
22.12.1102,860
22.12.030,976
22.11.214,044
22.11.13,674
22.11.010,418
22.10.12,265
22.10.019,149
22.9.07,076
22.8.26,050
22.8.13,351
22.8.011,328
22.7.120,411
22.7.09,757
22.6.541,009
22.6.47,018
22.6.321,427
22.6.217,927
22.6.14,998
22.6.02,505
22.5.05,416
22.4.115,598
22.4.02,402
22.3.08,246
22.2.017,418
22.1.03,540
22.0.09,898
21.11.0513,736
21.10.01,522
21.9.03,290
21.8.01,041
21.7.010,001
21.6.17,172
21.6.011,671
21.5.213,213
21.5.12,937
21.5.05,150
21.4.110,950
21.4.02,261
21.3.862,505
21.3.7489
21.3.62,883
21.3.5592
21.3.4916
21.3.367
21.3.2129
21.3.15,327
21.3.072
21.2.116,207
21.2.0271
21.1.14,377
21.1.02,279
21.0.329,743
21.0.214,511
21.0.14,751
21.0.0385
20.9.0363,349
20.8.31,729
20.8.22,147
20.8.1737
20.8.02,391
20.7.43,088
20.7.33,809
20.7.2484
20.7.1461
20.7.092
20.6.0434
20.5.02,600
20.4.04,052
20.3.076,841
20.2.13,902
20.2.0364
20.1.23,490
20.1.11,085
20.1.0554
20.0.03,463
19.11.1257,136
19.11.03,234
19.10.19,126
19.10.0602
19.9.17,226
19.9.02,392
19.8.513,780
19.8.421
19.8.31,699
19.8.11,470
19.8.08,476
19.7.510,664
19.7.42,458
19.7.31,921
19.7.212,206
19.7.19,084
19.7.01,296
19.6.39,273
19.6.2596
19.6.199
19.6.02,955
19.5.211,278
19.5.1590
19.5.0550
19.4.113,684
19.4.07,199
19.3.013,575
19.2.210,145
19.2.1126
19.2.015,952
19.1.11,651
19.1.0449
19.0.05,808
18.2.1132,525
18.2.0134
18.1.0213
18.0.52,519
18.0.47
18.0.329
18.0.210
18.0.16
18.0.010
17.1.32,924
17.1.220
17.1.131
17.1.07
17.0.052
16.2.01,312
16.1.110
16.1.0473
16.0.013
15.5.02,251
15.4.261
15.4.112
15.4.010
15.3.233
15.3.16
15.3.0112
15.2.06
15.1.111
15.1.08
15.0.2369
15.0.18
15.0.07
14.4.11,190
14.4.039
14.3.0332
14.2.119
14.2.0211
14.1.261
14.1.114
14.1.01,502
14.0.063
13.7.0467,519
13.6.0797
13.5.2979
13.5.15,394
13.5.0347
13.4.12,356
13.4.0574
13.3.21,066
13.3.1200
13.3.044
13.2.02,634
13.1.3114,448
13.1.21,645
13.1.1122
13.1.051
13.0.1805
13.0.0132
12.0.16,293
12.0.05
11.0.056,069
10.4.052,910
10.2.02,480
10.1.04,616
10.0.0367
9.1.187,057
9.1.049
9.0.0152
8.0.03,134
7.1.05,079
7.0.4112
7.0.310
7.0.26
7.0.134
7.0.0564
6.0.04,027
5.5.0155,029
5.4.1679
5.4.013
5.3.11,512
5.3.0465
5.2.11,391
5.2.0632
5.1.024
5.0.043
4.0.116,924
4.0.0276
3.3.018,611
3.2.052
3.1.01,787
3.0.423
3.0.310
3.0.231
3.0.1666
3.0.03,451
2.1.11,165,392
2.1.024
2.0.0531
1.20.03,847
1.19.0377
1.18.1956
1.18.07
1.17.0113
1.16.077
1.15.03,954
1.14.06
1.13.021
1.12.219,632
1.12.113
1.12.011
1.11.053
1.10.064
1.9.030
1.8.0302
1.7.0482

Package Sidebar

Install

npm i puppeteer-core

Weekly Downloads

7,393,164

Version

24.7.2

License

Apache-2.0

Unpacked Size

8.14 MB

Total Files

1528

Last publish

Collaborators

  • mathias
  • google-wombot