

Puppeteer uses several defaults that can be customized through configurationįor example, to change the default cache directory Puppeteer uses to installīrowsers, you can add a. Include $HOME/.cache into the project's deployment.įor a version of Puppeteer without the browser installation, see Your project folder (see an example below) because not all hosting providers To download Microsoft Edge, go to Download Microsoft Edge Insider Channels. Heroku, you might need to reconfigure the location of the cache to be within If you deploy a project using Puppeteer to a hosting provider, such as Render or Download Latest Version puppeteer-core v20.1.2.zip (2.4 MB) Get Updates Home / browsers-v1.1.0 1.1.0 () Features support stable/dev/beta/canary keywords for chrome and chromium ( 10140) ( 90ed263) Source: README.md, updated Other Useful Business Software Observability superpowers for Software Engineers. The browser is downloaded to the $HOME/.cache/puppeteer folderīy default (starting with Puppeteer v19.0.0). Puppeteer creates its own browser user profile which it cleans up on every run.When you install Puppeteer, it automatically downloads a recent version ofĬhrome for Testing (~170MB macOS, ~282MB Linux, ~280MB Windows) that is guaranteed to This article describes some differences for Linux users. See this article for a description of the differences between Chromium and Chrome. See Puppeteer.launch() for more information. You can also use Puppeteer with Firefox Nightly (experimental support). const puppeteer = require ( 'puppeteer' ) Ĭonst browser = await puppeteer.


Once you have a solid understanding of Puppeteer’s API and how it fits together in the Node. You create an instance of Browser, open pages, and then manipulate them with Puppeteer's API.Įxample: navigating to and saving a screenshot as example.png: There are many ways you can download files with Puppeteer. Puppeteer will be familiar to people using other browser testing frameworks. All examples below use async/await which is only supported in Node v7.6.0 or greater. Starting from v3.0.0 Puppeteer starts to rely on Node 10.18.1+. Prior to v1.18.1, Puppeteer required at least Node v6.4.0. puppeteer-core is a lightweight version of Puppeteer that launches an existing browser installation, like Microsoft Edge.
