Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/k6/v0.52.x/using-k6/test-authoring/create-tests-from-recordings/using-the-devtools-recorder.md, or by sending Accept: text/markdown to https://grafana.com/docs/k6/v0.52.x/using-k6/test-authoring/create-tests-from-recordings/using-the-devtools-recorder/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
Using the k6 DevTools recorder
The k6 DevTools recorder lets you record user journeys using Chrome DevTools and then export them as a k6 script.
Before you begin
To ensure you have a useful test output:
- Review the Be sure to record realistically and Consider hybrid approach for load testing websites sections on Create tests from recordings.
- Learn the basics of k6 browser tests with Running browser tests.
Note
Using the DevTools recorder doesn’t require a Grafana Cloud account.
Create a script from a recording
- Install the k6 DevTools recorder Chrome extension.
- Record a session using the Chrome DevTools Recorder.
- Export the user flow and choose the k6 Browser option.
- Edit your script as necessary. Depending on the type of test, you might need to change different aspects of the script. Typical changes are for load options and to handle correlation and dynamic data.
- Run the test from the CLI or Grafana Cloud k6. Refer to Running k6 for more details.
Was this page helpful?
Related resources from Grafana Labs

