![]() ![]() ![]() In the end, you should have a list of 3 files, namely, index.js, package-lock.json and package.json, and a nodemodules folder. You’ll also notice that it downloads a recent version of Chromium (170MB Mac, 282MB Linux, 280MB Win) that is guaranteed to work with the API. ![]() The browser is downloaded to the HOME/.cache/puppeteer folder by default. npm install puppeteer This will install Puppeteer from the NPM library. It is a tool for automating testing in your application using headless Chrome or Chromebit devices, without requiring any browser extensions like Selenium Webdriver or PhantomJS. To download files with Puppteer we can either the browser's fetch feature - which will download the file into a javascript variable - or find and click the download button which will download the file to the browser's save directory: // start puppeteerĬonst browser = await puppeteer.launch() Īwait page._nd('Page. By default, Puppeteer downloads and uses a specific version of Chromium so its API is guaranteed to work out of the box. Puppeteer is a Node.js library which provides a high-level API to control. Steps to reproduce Tell us about your environment: Puppeteer version: 1.17.0 Platform / OS version: macOS 10.14.4 (18E226) Node.js version: v10.16.0 What steps will reproduce the problem sudo npm i puppeteer What is the expected result. Puppeteer is a Node.js library developed by Google that lets you control headless Chrome through the DevTools Protocol.
0 Comments
Leave a Reply. |