You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These [Chrome](https://chrome.google.com/webstore/detail/k6-browser-recorder/phjdhndljphphehjpgbmpocddnnmdbda?hl=en) and [Firefox](https://addons.mozilla.org/en-US/firefox/addon/k6-browser-recorder/) extensions only work for existing k6 Cloud users.
13
+
14
+
For new users, check out the [latest browser recorder](https://grafana.com/docs/grafana-cloud/k6/author-run/browser-recorder/), which is also free and lets you auto-generate the k6 script.
15
+
16
+
</Blockquote>
17
+
18
+
19
+
20
+
## Before you start
21
+
22
+
Before you start, consider the following:
23
+
24
+
-[Be sure to record realistically](/test-authoring/create-tests-from-recordings/#be-sure-to-record-realistically)
25
+
-[A hybrid approach for load testing websites](/test-authoring/create-tests-from-recordings/#consider-hybrid-approach-for-load-testing-websites)
26
+
27
+
28
+
## How to record
29
+
30
+
31
+
1. Install the [Chrome](https://chrome.google.com/webstore/detail/k6-browser-recorder/phjdhndljphphehjpgbmpocddnnmdbda?hl=en) or [Firefox](https://addons.mozilla.org/en-US/firefox/addon/k6-browser-recorder/) extension.
32
+
1. Open the extension by clicking the k6 logo.
33
+
1. Select **Start recording** to begin recording the current browser tab.
1. Edit your script as necessary. Depending on the [type of load test](/test-types/load-test-types/), you might need to change different aspects of the script.
41
+
Typical changes are for [load options](/using-k6/options) and to handle [correlation and dynamic data](/examples/correlation-and-dynamic-data).
42
+
1. Run the test locally or in k6 Cloud.
43
+
44
+
- To run a test from the k6 Cloud UI, select **Run** to start the test.
45
+
- To use the k6 CLI to run a local or cloud test, copy the generated script to your local text editor and execute the `k6 run` or `k6 cloud` command to start the test.
46
+
47
+
For more about running k6, refer to the [Running k6 guide](/get-started/running-k6).
48
+
49
+
## Trouble? Try the HAR converter
50
+
51
+
Some users have reported `413` errors when they try to upload long recordings.
52
+
In these cases, the easiest fix is to use the [HAR converter](/test-authoring/create-tests-from-recordings/using-the-har-converter/), which creates a k6 script from the HTTP requests included in a HAR file (it also powers the browser recorder).
53
+
54
+
Besides avoiding the `413` error,
55
+
the HAR converter catches some edge-case behavior that the browser recorder won't.
56
+
For example, the browser extension doesn't record other tabs or pop-up windows.
57
+
58
+
If you need to capture this information or are having a problem recording a request, try the HAR converter.
59
+
If the error persists with the HAR converter, please provide detailed information about the problem [in a new issue](https://github.com/k6io/har-to-k6/issues).
Collapse file: src/data/markdown/translated-guides/en/05 Test authoring/02 Create tests from recordings/01 Using the browser recorder.md
Copy file name to clipboardExpand all lines: src/data/markdown/translated-guides/en/05 Test authoring/02 Create tests from recordings/01 Using the browser recorder.md
+19-31Lines changed: 19 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,53 +4,41 @@ excerpt: 'The browser recorder allows generating a k6 script based on a web sess
4
4
---
5
5
6
6
The browser recorder lets you generate a k6 script based on a browser session.
7
-
It's available as an extension for [Chrome](https://chrome.google.com/webstore/detail/k6-browser-recorder/phjdhndljphphehjpgbmpocddnnmdbda?hl=en) and [Firefox](https://addons.mozilla.org/en-US/firefox/addon/k6-browser-recorder/).
7
+
It's available as an extension for [Chrome](https://chrome.google.com/webstore/detail/grafana-k6-browser-record/fbanjfonbcedhifbgikmjelkkckhhidl) and [Firefox](https://addons.mozilla.org/en-US/firefox/addon/grafana-k6-browser-recorder/).
8
8
9
9
10
10
## Before you start
11
11
12
+
12
13
Before you start, consider the following:
13
14
14
15
-[Be sure to record realistically](/test-authoring/create-tests-from-recordings/#be-sure-to-record-realistically)
15
16
-[A hybrid approach for load testing websites](/test-authoring/create-tests-from-recordings/#consider-hybrid-approach-for-load-testing-websites)
16
17
18
+
> Note that the browser recorders **do not require a cloud account**. For cloud users, check out the [Grafana Cloud](https://grafana.com/docs/grafana-cloud/k6/author-run/browser-recorder/) and [k6 Cloud](/cloud/creating-and-running-a-test/using-the-browser-recorder/) instructions.
17
19
18
20
## How to record
19
21
20
-
<Blockquotemod="note"title="The recorder is free to use">
21
-
22
-
The browser recorder requires a [k6 Cloud account](https://app.k6.io), but you do not need an active k6 Cloud subscription.
23
-
24
-
When you finish recording the session, the browser extension uploads the auto-generated k6 test into your k6 Cloud account. You can then copy the script to edit it in your local IDE and run the test locally using the `k6 run` command.
25
-
26
-
</Blockquote>
27
-
28
-
1. Install the [Chrome](https://chrome.google.com/webstore/detail/k6-browser-recorder/phjdhndljphphehjpgbmpocddnnmdbda?hl=en) or [Firefox](https://addons.mozilla.org/en-US/firefox/addon/k6-browser-recorder/) extension.
22
+
1. Install the [Chrome](https://chrome.google.com/webstore/detail/grafana-k6-browser-record/fbanjfonbcedhifbgikmjelkkckhhidl) or [Firefox](https://addons.mozilla.org/en-US/firefox/addon/grafana-k6-browser-recorder/) extension.
29
23
1. Open the extension by clicking the k6 logo.
30
-
1. Select **Start recording** to begin recording the current browser tab.
1. Edit your script as necessary. Depending on the [type of load test](/test-types/load-test-types/), you might need to change different aspects of the script.
24
+
2. Choose where to save the auto-generated script.
25
+
- To save it on your local machine, select **I don't want to save tests in the cloud**.
26
+
- To save it on any of your Grafana Cloud k6 projects, select **Sign In**.
27
+
3. Select **Start recording** to begin recording the current browser tab.
28
+
4. When done, select **Stop recording**.
29
+
5. Save the recorded script locally or in any of your cloud projects.
30
+
6. Edit your script as necessary. Depending on the [type of load test](/test-types/load-test-types/), you might need to change different aspects of the script.
38
31
Typical changes are for [load options](/using-k6/options) and to handle [correlation and dynamic data](/examples/correlation-and-dynamic-data).
39
-
1. Run the test locally or in k6 Cloud.
40
-
41
-
- To run a test from the k6 Cloud UI, select **Run** to start the test.
42
-
- To use the k6 CLI to run a local or cloud test, copy the generated script to your local text editor and execute the `k6 run` or `k6 cloud` command to start the test.
32
+
7. Run the test from the CLI or Grafana Cloud k6. For more about running k6, refer to the [Running k6 guide](/get-started/running-k6).
43
33
44
-
For more about running k6, refer to the [Running k6 guide](/get-started/running-k6).
34
+
## Troubleshooting. Try the HAR converter
45
35
46
-
## Trouble? Try the HAR converter
47
36
48
-
Some users have reported `413` errors when they try to upload long recordings.
49
-
In these cases, the easiest fix is to use the [HAR converter](/test-authoring/create-tests-from-recordings/using-the-har-converter/), which creates a k6 script from the HTTP requests included in a HAR file (it also powers the browser recorder).
37
+
If you experience problems recording a request, try the [HAR converter](/test-authoring/create-tests-from-recordings/using-the-har-converter/).
50
38
51
-
Besides avoiding the `413` error,
52
-
the HAR converter catches some edge-case behavior that the browser recorder won't.
53
-
For example, the browser extension doesn't record other tabs or pop-up windows.
39
+
The Browser recorder uses the HAR converter under the hood.
40
+
Like the Browser Recorder, the HAR converter creates a k6 script from the HTTP requests included in a HAR file.
41
+
42
+
The HAR converter can also record other tabs or pop-up windows, which the Browser Recorder cannot.
54
43
55
-
If you need to capture this information or are having a problem recording a request, try the HAR converter.
56
-
If the error persists with the HAR converter, please provide detailed information about the problem [in a new issue](https://github.com/k6io/har-to-k6/issues).
44
+
If the error persists with the HAR converter, please provide detailed information about the problem [in a new issue](https://github.com/k6io/har-to-k6/issues).
0 commit comments