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
@@ -48,3 +48,23 @@ export default async function () {
48
48
```
49
49
50
50
</CodeGroup>
51
+
52
+
When a click action results in a page navigation, remember to work with `Promise.all()` and `page.waitForNavigation()` to properly handle the asychronous operation.
53
+
54
+
<CodeGroup labels={["Click action with navigation"]}>
Copy file name to clipboardExpand all lines: src/data/markdown/translated-guides/en/03 Using k6 browser/03 Metrics.md
+20-4Lines changed: 20 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,18 @@ title: 'Browser metrics'
3
3
excerpt: 'An overview of the different browser performance metrics that the browser module tracks.'
4
4
---
5
5
6
-
<Blockquotemod="attention">
6
+
Follow along to learn about:
7
7
8
-
These metrics are still subject to change in the future.
8
+
1. The existing browser metrics that k6 browser tracks
9
+
2. The Web Vitals and why they are important
10
+
3. How to set thresholds for your browser metrics
11
+
4. How to separate the browser metrics for different pages
12
+
13
+
## Existing browser metrics
14
+
15
+
<Blockquotemod="note"title="">
16
+
17
+
As of k6 version 0.44.0, k6 browser now natively supports [Web Vitals](https://web.dev/vitals/). In future releases, we will remove the following browser metrics to focus on the standard web vital metrics.
9
18
10
19
</Blockquote>
11
20
@@ -16,5 +25,12 @@ Apart from the usual HTTP specific metrics that k6 already tracks, the browser m
16
25
| browser_dom_content_loaded | Emitted when the page is loaded but scripts have just started to be executed. |
17
26
| browser_first_paint | Emitted when the browser renders the first pixel on the page. |
18
27
| browser_first_contentful_paint | Emitted when the browser renders the first DOM element on the page, whether that's a text, image or header. |
19
-
| browser_first_meaningful_paint | Emitted when the browser renders the main content from above-the-fold that the users are looking for. |
20
-
| browser_loaded | Emitted when the page is fully loaded. |
28
+
| browser_loaded | Emitted when the page is fully loaded. |
0 commit comments