Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

headless-recorder

checkly10MIT0.8.2

A Chrome extension for recording browser interaction and generating Puppeteer & Playwright scripts

puppeteer, chrome, extension

readme

Headless Recorder (previously Puppeteer Recorder)

Build Status

Gold sponsor

Checkly

⭐️ Puppeteer Recorder is now Headless Recorder and supports Playwright! ⭐️

Headless recorder is a Chrome extension that records your browser interactions and generates a Puppeteer or Playwright script. Install it from the Chrome Webstore. Don't forget to check out our sister project theheadless.dev, the open source knowledge base for Puppeteer and Playwright.

This project 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.
  • Hit <kbd>tab</kbd> after 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 or Playwright 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 disclaimer below) but adds extensibility, configurability and a smoother UI.

Development

  1. Run: git clone https://github.com/checkly/headless-recorder.git
  2. Build the project: cd headless-recorder && npm i && npm run dev
  3. Navigate to chrome://extensions
  4. Make sure 'Developer mode' is checked
  5. Click Load unpacked extension...
  6. Browse to headless-recorder/build and click Select

Cutting a Release

  • bump versions in package.json and manifest.json
  • tag the code with the version, i.e. git tag v0.4.0
  • push with tags git push --tags

Now generate a release with gren. Make sure all issues associated with the new version are linked to a milestone with the name of the tag.

gren release --override --data-source=milestones --milestone-match="{{tag_name}}"

Credits & disclaimer

Headless recorder is the spiritual successor & love child of segment.io's Daydream and ui recorder. Headless Recorder was previously named "Puppeteer Recorder".

License

Apache 2

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[1.0.0] - 2021-07-08

Added

  • New visual identity by @nucro.
  • In page overlay to handle recording and take screenshots
  • Visual feedback when taking screenshots
  • New code structure organized in modules and services
  • Dark mode support
  • Migrate to Vue 3 and dependencies update
  • Migrate CSS to Tailwind (except for Overlay components)
  • Selector preview while recording
  • Restart button while recording
  • Allow run scripts directly on Checkly 🦝
  • First draft of Vuex shared store

Changed

  • Make Playwright default tab
  • Use non-async wrap as default
  • Full page screenshots use fullPage property
  • Replace clipped screenshots with element screenshots
  • Improve selector generation giving relevance to ID and data-attributes #64
  • General bug fixing
  • Improve code reusability and events management

Removed

  • Screenshots context menu
  • Events recording list

[0.8.2] - 2020-12-15

Changed

  • Specify custom key for input record #111
  • Fix input escaping #119