To not leave them unmentioned, there are many tools available to perform tasks in an automated way, for example Selenium, Cypress, PhantomJS, and many others, however Puppeteer was developed specifically for Node.js to control Chrome/Chromium over thier DevTools Protocol, allowing for both headless and full UI mode, this is ideal since most people are already familiar with both Chrome and its DevTools. The full list of API methods available for Puppeteer are listed here. Puppeteer provides a great set of functionality to perform a large amount of tasks, however in this article we're going to be talking to chrome directly using the exposed WebSocket, which lets us talk to Chrome using the DevTools protocol. In 2018 Google released version 1.0.0 of Puppeteer which has since enabled developers to do all sorts of things, from testing their user interfaces end to end without ever opening a browser, to taking screenshots of websites on a schedule, almost anything you can think of that can be done with a browser, can be automated using Puppeteer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |