Release of Puppeteer 23, a library for automating browser control

The release of the JavaScript library Puppeteer 23 has been introduced, designed for automating web browser management. The library is suitable for both automating common browser operations and for conducting browser testing and simulating user interactions. The project code is written in TypeScript using Node.js and is distributed under the Apache 2.0 license.

For example, Puppeteer allows you to create a script that launches a browser, sets the desired window size, opens a specific page, focuses on a designated search field, inputs data into the field, and sends a request, after which it navigates to the first result link and saves the retrieved page. The library also provides capabilities for downloading the latest version of the selected browser, simulating user behavior on a chosen device (for example, on a Pixel 5 smartphone), and handling authentication forms. During operation, you can monitor, intercept, modify, or block network requests and responses, as well as manipulate HTTP headers and execute your scripts within the context of the opened pages.

The release of Puppeteer 23 is notable for providing support for the Firefox browser, in addition to the originally supported Chromium-based browsers (the Puppeteer project is developed by the Chrome Browser Automation team). It supports the CDP (Chrome DevTools Protocol) and WebDriver BiDi protocols for browser interaction. By default, browsers are launched in headless mode. It is noted that the addition of Firefox support and WebDriver BiDi in the new version allows Puppeteer to be used as a universal tool for automating the testing of web applications across different browsers.

Source: opennet.ru

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster