User Flow Recorder: Record, Replay, Export, Steps and Extensions
How the DevTools Recorder records and replays user flows, exports to Puppeteer and JSON, edits steps, and extends via the recorder API.
This page summarizes Chrome DevTools documentation on the Recorder panel: recording interactions on a page, replaying them for debugging, exporting flows for automation or bug reports, and extending Export and Replay through extensions. The panel is a preview feature available in Chrome (not Chromium), introduced around Chrome 97 and expanded with export extensions from Chrome 105 and custom replay from Chrome 112.
Recorder panel: what it does and when to use it
Section titled “Recorder panel: what it does and when to use it”The Recorder panel lets you record, replay, measure, and edit user flows—sequences of actions a person takes on a site or web app.
Use the Recorder panel to record, measure, and edit user flows. The Recorder panel contains a set of diagnostic tools that can help frontend developers improve and debug their conversion paths.
In plain terms, you open DevTools, start recording, click and type on the page as a user would, then stop and Replay to see whether the same steps still work. You can slow replay, set breakpoints, edit steps (including adding hovers the recorder skipped), export to JSON or Puppeteer formats for CI or sharing, and generate performance profiles linked to the Performance panel. Choose the Recorder when you need a reproducible path through the UI without writing a test script by hand first; use full test frameworks when you need suites, fixtures, and long-term maintenance beyond what a recording provides.
| Goal | Recorder approach |
|---|---|
| Reproduce a bug for a report | Record, export JSON, attach to issue |
| Quick local sanity check | Record and replay in the panel |
| CI or scripted automation | Export @puppeteer/replay or Puppeteer script |
| Custom tool output (Cypress, etc.) | Install export extensions or build your own |
| Measure flow performance | Generate a profile from the recording |
Open the Recorder panel in DevTools
Section titled “Open the Recorder panel in DevTools”Where to find Recorder in the menu
Section titled “Where to find Recorder in the menu”Open DevTools, then either use the Command Menu or the More tools menu.
- Open DevTools on a normal web page (not
chrome://URLs for extension-powered features). - Open the Command Menu: Command+Shift+P (macOS) or Control+Shift+P (Windows, Linux, ChromeOS).
- Type
Recorder panel, choose Show Recorder panel, press Enter.
Alternatively: More options → More tools → Recorder, as described in Record, replay, and measure user flows.
Recorder panel keyboard shortcuts
Section titled “Recorder panel keyboard shortcuts”| Action | Mac | Windows / Linux |
|---|---|---|
| Start or stop recording | Command+E | Control+E |
| Replay recording | Command+Enter | Control+Enter |
| Copy recording or selected step | Command+C | Control+C |
| Toggle code view | Command+B | Control+B |
Source: Keyboard shortcuts (Recorder panel section).
Record a user flow: capture steps on the page
Section titled “Record a user flow: capture steps on the page”Start and stop recording
Section titled “Start and stop recording”On your target page, click Start new recording, name the flow, and optionally set Selector attribute and Selector types to record before you begin (see Understand selectors below). Perform actions on the page; the panel lists each step as you go. Click End recording when finished.
Record, replay, measure user flows, and edit their steps.
— Chrome, Chrome DevTools
During recording you can edit steps and add assertions before you end the recording (Record, replay, and measure user flows).
Steps the Recorder adds automatically
Section titled “Steps the Recorder adds automatically”Every new recording starts with two steps: setViewport (viewport dimensions and related flags) and navigate (URL and a refresh on each replay). Remove the navigation step if you need in-page automation without reloading (Recorder features reference).
Replay behavior in the viewport
Section titled “Replay behavior in the viewport”When you click Replay, the Recorder waits until the target element is visible or clickable, or scrolls it into view before running the step (Record, replay, and measure user flows).
Replay a user flow: speed, breakpoints, and debugging
Section titled “Replay a user flow: speed, breakpoints, and debugging”Replay speeds (panel only)
Section titled “Replay speeds (panel only)”Open the Replay drop-down and choose Normal, Slow, Very slow, or Extremely slow. These options apply only to replay inside the Recorder; persistent delays belong in step timeout settings (Slow down the replay).
Breakpoints and step-by-step execution
Section titled “Breakpoints and step-by-step execution”Hover the circle next to a step until it becomes a breakpoint icon, click it, then replay. Execution pauses at that step; use Execute one step to advance or Cancel replay to stop (Set breakpoints and execute step by step).
Show code: side-by-side steps and export formats
Section titled “Show code: side-by-side steps and export formats”Click Show code to see steps alongside generated code. Hover a step to highlight its code in the selected format (JSON, @puppeteer/replay, Puppeteer, or an extension format). The code view is read-only; edit step fields on the left and the code updates (Inspect code).
Export and import user flows: JSON, Puppeteer, and extensions
Section titled “Export and import user flows: JSON, Puppeteer, and extensions”Built-in export formats
Section titled “Built-in export formats”From Export on the open recording:
| Format | Typical use |
|---|---|
| JSON file | Edit, re-import into Recorder |
@puppeteer/replay |
CI with editable JSON steps inside the script |
| Puppeteer | JavaScript steps; finer control (loops); cannot re-import |
| Puppeteer (for Firefox) | Run on Chrome and Firefox via WebDriver BiDi |
| Puppeteer (including Lighthouse analysis) | Same as Puppeteer plus Lighthouse output (flow.report.html after running the script) |
Details: Export a user flow.
You can export and import user flows in the Recorder. This is useful for bug reporting because you can share an exact record of the steps that reproduce a bug. You can also export and replay it with external libraries.
— Chrome, Recorder features reference
Import accepts JSON only: Import → select file → Replay (Import a user flow).
Replay outside DevTools
Section titled “Replay outside DevTools”Puppeteer Replay is an open-source CLI maintained by the Chrome DevTools team for replaying JSON recordings. Third-party tools (Cypress Chrome Recorder, Nightwatch, CodeceptJS, TestCafe, Sauce Labs via saucectl, and others) convert or replay JSON flows; you can also build on Puppeteer Replay’s customization hooks.
Custom export via installed extensions
Section titled “Custom export via installed extensions”Install extensions from the Recorder extensions collection; their names appear under Export. In the panel: Export → Get extensions… (Customize the Recorder with extensions).
Edit steps: types, assertions, timeouts, and selectors
Section titled “Edit steps: types, assertions, timeouts, and selectors”Step types and configuration
Section titled “Step types and configuration”Each step has a type (click, doubleClick, hover, change, keyUp, keyDown, scroll, close, navigate, waitForElement, waitForExpression, setViewport, and others). Expand a step to set required and optional properties (Configure steps, Step properties).
Common optional fields include frame (nested iframe indexes), timeout, selectors, and target (CDP target; default main).
Assertions during recording
Section titled “Assertions during recording”Use Add assertion to create a configurable waitForElement step: HTML attributes, JavaScript properties (JSON), visible, and related checks. Failed assertions surface as errors after timeout on replay (Add assertions).
Default and per-step timeouts
Section titled “Default and per-step timeouts”Default step timeout is 5000 ms. Set a global value via Replay settings → Timeout, or add timeout on a specific step (overrides default). Remove per-step overrides with the delete control next to the value (Adjust timeouts for steps).
Copy or remove individual steps
Section titled “Copy or remove individual steps”Right-click a step or use the three-dot menu: Copy as… (JSON, Puppeteer, @puppeteer/replay, or extension formats) or Remove step (Copy steps, Remove steps).
Understand selectors: recording priority and test attributes
Section titled “Understand selectors: recording priority and test attributes”Selector types and custom attribute
Section titled “Selector types and custom attribute”When starting a recording, you can set a Selector attribute (e.g. data-automate) and check which types to record: CSS, ARIA, Text, XPath, Pierce (shadow DOM) (Understand selectors).
Common test attributes
Section titled “Common test attributes”If present, the Recorder prefers attributes such as data-testid, data-test, data-qa, data-cy, data-test-id, data-qa-id, and data-testing over fragile auto-generated classes (Common test selectors).
Selector priority order
Section titled “Selector priority order”With a custom CSS attribute: custom CSS → XPath → ARIA → shortest unique text. Without it: ARIA → CSS (test attributes, then id, then regular CSS) → XPath → Pierce → text (Selector priority).
On replay, the Recorder tries selectors in order and uses the first match (Expand steps).
chrome.devtools.recorder API: extend Export and Replay
Section titled “chrome.devtools.recorder API: extend Export and Replay”What the recorder extension API is for
Section titled “What the recorder extension API is for”Use the chrome.devtools.recorder API to customize the Recorder panel in DevTools.
— Chrome,
chrome.devtools.recorder
The API is a preview feature: from Chrome 105+ you can extend export; from Chrome 112+ you can extend the replay button (browser.devtools.recorder). Manifest V3 code uses browser.devtools.recorder; MV2 samples use chrome.devtools.recorder with the same shapes.
Register plugins with registerRecorderExtensionPlugin(plugin, name, mediaType).
Export plugins: stringify and stringifyStep
Section titled “Export plugins: stringify and stringifyStep”The plugin must implement:
stringify(recording)— full user flow (Puppeteer recording schema)stringifyStep(step)— single step (Puppeteer step schema)
The name appears in the Export menu; mediaType describes the output (e.g. application/javascript). Depending on export context, the panel calls one of the two methods (Customizing the export feature).
Minimal JSON export example:
class MyPlugin { stringify(recording) { return Promise.resolve(JSON.stringify(recording)); } stringifyStep(step) { return Promise.resolve(JSON.stringify(step)); }}
browser.devtools.recorder.registerRecorderExtensionPlugin( new MyPlugin(), 'MyPlugin', 'application/json');Replay plugins: replay and RecorderView
Section titled “Replay plugins: replay and RecorderView”If the plugin implements replay(recording), a custom Replay control appears; the recording object is passed as the first argument. The extension may call other APIs or show a RecorderView created with createView(title, pagePath), embedded in the Recorder panel, with onShown, onHidden, and show() (Customizing the replay button).
Install Recorder extensions and common mistakes
Section titled “Install Recorder extensions and common mistakes”Install from the collection
Section titled “Install from the collection”- Pick an extension from the collection (or Export → Get extensions… in the Recorder).
- In Chrome Web Store, click Add to Chrome.
- Open DevTools in a new tab and check Export / replay options on a normal
https://page.
You can customize the Recorder and integrate it into your workflow by installing third-party extensions that suit the tools you use.
— Chrome, Customize the Recorder with extensions
Troubleshooting missing export or replay options
Section titled “Troubleshooting missing export or replay options”- Extensions apply to web pages, not
chrome://pages such aschrome://extensions(Troubleshooting). - Open a new browser tab after installing an extension.
- Enterprise policy can block extensions (
runtime_blocked_hostsinExtensionSettingsatchrome://policy/). - Chrome 104–105: export might not show if Recorder was the first DevTools panel opened; open another panel (e.g. Console) first—fixed in Chrome 106 (issue 1351416).
To build your own extension, use the chrome.devtools.recorder API, example extensions linked from Chrome docs, and publish via Chrome Web Store (Build your own extension).
How to check this on your site
Section titled “How to check this on your site”- Open a staging or production URL in Chrome, open DevTools, and show the Recorder panel.
- Record a short flow, then Replay; if steps fail, add hovers, timeouts, or selectors per Recorder features reference.
- Export as JSON and re-Import to confirm the file round-trips.
- If you use extensions, verify custom entries under Export on a normal page after a fresh tab, following Customize the Recorder with extensions.
- You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about.