Chrome Recorder: Record, Replay and Measure User Flows
Typically, a user needs to process multiple pages or steps to finish his journey, such as submitting an order or completing a registration. If we as developers need to develop one of the last pages of this user flow, we need to manually process all the previous pages/steps every time we refresh the page or need to restart the flow.
If multiple team members (also tester) have to do the same steps repeatedly, this costs a lot of time and, therefore, money. In previous projects, we often developed custom tools to proceed to certain pages/steps in the application automatically.
But now, the Chrome browser provides this functionality as a preview feature.
Chrome Recorder is a preview feature in the Chrome browser designed to record, replay and measure user flows of an application.
It's then possible to replay the recorded user flow and measure the performance of the run.
To find the Recorder, you first open up the Chrome DevTools.
Command+Option+C (Mac) or Control+Shift+C (Windows, Linux, ChromeOS).
You can open the Recorder from the options menu:
Alternatively, you can open it from Command Menu:
I'll be using Vue 3 Form Wizard to demonstrate the recording & replaying of a simple user flow.
The demo page provides a simple wizard with multiple steps containing common input types like text & select inputs.
Let's start the recording:
Once you hit the record button, you can enter all data in the wizard. If you are done, hit the "End recording" button at the bottom of the recorder panel.
The following GIF visualizes this process:
It's also possible to manually edit the recorded steps. For example, you can manually change selectors:
Additionally, you can manually add or remove steps:
After recording a user flow, you can replay it by clicking on the "Replay" button.
It's also possible to simulate a slow network connection in the "Replay" settings:
You can also measure the performance of your recording by clicking the "Measure performance" button. This way, you can regularly measure the performance of critical user flows.
The Chrome Recorder is valuable tool that will boost my productivity during development. It's still a preview feature, but I think it will become a must-have tool for web developers.
I recommend reading the official Chrome blog post.
If you liked this article, follow me on Twitter to get notified about new blog posts and more content from me.
Alternatively (or additionally), you can also subscribe to my newsletter.