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
Copy file name to clipboardExpand all lines: src/data/markdown/translated-guides/en/03 Using k6 browser/04 Migrating to k6 v0-46.md
+10-12Lines changed: 10 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,18 +19,6 @@ Users no longer need to use the `K6_BROWSER_ENABLED` flag when running browser t
19
19
</Blockquote>
20
20
21
21
22
-
## Key changes in the new API
23
-
24
-
The updated version introduces notable structural changes in its operation and API. Let's take a look at them.
25
-
26
-
*[Scenario options](#scenario-options) must now be defined for running browser tests.
27
-
* The [import path](#import-path) for the browser module has switched from `chromium` to [browser](/javascript-api/k6-experimental/browser/#browser-module-api).
28
-
* Browser options can now only be set using certain [environment variables](/javascript-api/k6-experimental/browser/#browser-module-options). The `launch()` method, used earlier for this purpose, has been removed.
29
-
*[Simplified resource management](#simplified-resource-management). The browser now starts automatically, managed by the browser module itself. There's no need to use `browser.close()` anymore.
30
-
*[Single browser context per iteration](#browser-context-limit). Users can now only run a single [BrowserContext](/javascript-api/k6-experimental/browser/browsercontext/) at a time in the same iteration.
31
-
32
-
33
-
34
22
## Before and after comparison
35
23
36
24
Let's start with an overview of the primary differences between the previous and new versions of the k6 browser API. Subsequent sections will delve into each difference in detail.
@@ -92,6 +80,16 @@ export default async function () {
92
80
</CodeGroup>
93
81
94
82
83
+
## Key changes in the new API
84
+
85
+
The updated version introduces notable structural changes in its operation and API. Let's take a look at them.
86
+
87
+
*[Scenario options](#scenario-options) must now be defined for running browser tests.
88
+
* The [import path](#import-path) for the browser module has switched from `chromium` to [browser](/javascript-api/k6-experimental/browser/#browser-module-api).
89
+
* Browser options can now only be set using certain [environment variables](/javascript-api/k6-experimental/browser/#browser-module-options). The `launch()` method, used earlier for this purpose, has been removed.
90
+
*[Simplified resource management](#simplified-resource-management). The browser now starts automatically, managed by the browser module itself. There's no need to use `browser.close()` anymore.
91
+
*[Single browser context per iteration](#browser-context-limit). Users can now only run a single [BrowserContext](/javascript-api/k6-experimental/browser/browsercontext/) at a time in the same iteration.
0 commit comments