Skip to content

Commit 97c0e15

Browse files
committed
Convert you to users
1 parent 144474b commit 97c0e15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/data/markdown/translated-guides/en/03 Using k6 browser/04 Migrating to k6 v0-46.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ slug: '/using-k6-browser/migrating-to-k6-v0-46/'
66

77
This guide outlines the key changes users will need to make when moving their existing k6 browser test scripts to the new browser module (bundled up with the k6 version 0.46).
88

9-
The new version abstracts away the handling of the browser lifecycle and instead takes care of allocating and deallocating browser resources for you. To enable this, a newly required field is introduced to define the browser within the `scenario`.
9+
The new version abstracts away the handling of the browser lifecycle and instead takes care of allocating and deallocating browser resources for users. To enable this, a newly required field is introduced to define the browser within the `scenario`.
1010

1111
Previously, users were responsible for establishing and shutting down the browser instance. However, with the current changes, the API has concealed the intricacies of `browserType`, and so the `chromium` named export has been removed from `k6/experimental/browser`, which has been replaced with `browser`.
1212

@@ -207,7 +207,7 @@ This change allows to identify the test as a browser test and provides automatic
207207

208208
## Opening a new page
209209

210-
You can open a new page by using the imported [browser](/javascript-api/k6-experimental/browser/#browser-module-api) object's [browser.newPage()](/javascript-api/k6-experimental/browser/newpage) method. You can still use the [Page](/javascript-api/k6-experimental/browser/page/) object as before.
210+
Users can open a new page by using the imported [browser](/javascript-api/k6-experimental/browser/#browser-module-api) object's [browser.newPage()](/javascript-api/k6-experimental/browser/newpage) method. Users can still use the [Page](/javascript-api/k6-experimental/browser/page/) object as before.
211211

212212
<CodeGroup labels={["After"]} lineNumbers={[true]}>
213213

0 commit comments

Comments
 (0)