Puppeteer recorder is a Chrome extension that records your browser interactions and generates aPuppeteer script. Install it from the Chrome Webstore.
This project is pretty fresh, but does the following already:
Records clicks and type events.
Add waitForNavigation, setViewPort and other useful clauses.
Generates a Puppeteer script.
Shows which events are being recorded.
Copy to clipboard.
Offers configuration options.
Allows data-id configuration for element selection.
Note: we only record certain events. See dom-events-to-record.js in the code-generator folder for which events. This collection will be expanded in future releases.
Usage
Click the icon and hit Record.
Hittabafter you finish typing in an input element.
Click links, inputs and other elements.
Wait for full page load on each navigation. The icon will switch from to .
Click Pause when you want to navigate without recording anything. Hit Resume to continue recording.
Background
Writing Puppeteer scripts for scraping, testing and monitoring can be tricky. A recorder / code generator can be helpful,
even if the code isn't perfect. This project builds on other projects (see disclaimerbelow) but adds extensibility, configurability and a smoother UI.