newbiedev
newbiedev

Reputation: 3586

using puppeteer or puppeteer-core in cli script

I need to write a node cli script that will run some tests on the forms of a website I'm working on. I want to use puppeteer but I'm a bit confused about the difference between the full version and puppeteer-core. What is the best choice if I want to run the tests from a cli script without opening the browser and only simulating it?

Upvotes: 0

Views: 1315

Answers (1)

Vaviloff
Vaviloff

Reputation: 16838

To put it simply, puppeteer-core is for when you already have a browser and don't want to download a whole Chromium which the main puppeteer package does, automatically.

It is better to go with the full puppeteer since this way you will be getting the "batteries included, tested and are guaranteed to work" experience.

Official documentation offers a detailed comparison.

Upvotes: 1

Related Questions