![]() Oren Rubin, CEO at Testim.io, a machine learning test automation platform, asks if Puppeteer helps the development community or not, and points out that: Not everyone is convinced that Puppeteer is a step in the right direction. Debugging tests written for Selenium can also be challenging - even simple things like grabbing the console output from test cases, slowing down tests so you can see what’s going on or intercepting requests. This simply has too many components, and hard to get right. However, to run Selenium tests, you need a Selenium server/cluster running locally or in the cloud, and also browser drivers to control Chrome, Firefox or any other browser. Gergely Nemeth, a Node.js expert, cites the simplicity of setting up Puppeteer compared to Selenium-based tools: The API could be improved, sure, but knowing the basics is a must. A lot of folks are building new testing frameworks right now, with Puppeteer. Puppeteer gives you endless possibilities. Valentino Gagliardi, a JavaScript and React consultant, remarks in his tutorial on using Puppeteer with Jest: Many developers have authored extensive tutorials and provided their feedback on working with Puppeteer. Since its initial release, Puppeteer has been widely adopted as a simpler way to introduce automation into the developer workflow. ![]() ![]() The project provides the hosted Try Puppeteer app as a way to quickly get started with Puppeteer. Puppeteer requires at least Node.js version 6.4, though to use many of the more modern ES2015+ APIs such as async/await, users should start with Node.js version 8.x or greater. Leveraging Node.js and the Chrome DevTools protocol, Puppeteer provides an alternative to Selenium WebDriver.īeyond the typical use case of automated browser testing, Puppeteer can be used for a variety of browser automation techniques including performing repetitive tasks, scraping content, and screenshot generation. ![]() Puppeteer is a headless automation tool and API for Chrome and Chromium-based web browsers. Puppeteer 1.0 has been released and includes dozens of improvements, including measurement of JavaScript heap and page performance, and code coverage information for JavaScript and CSS. ![]()
0 Comments
Leave a Reply. |