Skip to content

Commit 4befe06

Browse files
heitortsergentinancgumus
authored andcommitted
Fix old browser import statements
1 parent 81ac03f commit 4befe06

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

docs/sources/v0.52.x/javascript-api/k6-browser/browsercontext/waitforevent.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ Waits for the event to fire and returns its value. If a predicate function has b
1818

1919
### Returns
2020

21-
| Type | Description |
22-
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21+
| Type | Description |
22+
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2323
| `Promise<Page>` | A Promise that fulfills with a [page](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/page) object when the `page` event has been emitted. |
2424

2525
### Example
2626

2727
<CodeGroup labels={[]}>
2828

2929
```javascript
30-
import { browser } from 'k6/x/browser';
30+
import { browser } from 'k6/browser';
3131

3232
export const options = {
3333
scenarios: {

docs/sources/v0.52.x/javascript-api/k6-browser/page/on.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ When using the `page.on` method, the page has to be explicitly [closed](https://
2020

2121
### Events
2222

23-
| Event | Description |
24-
| --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
23+
| Event | Description |
24+
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2525
| `console` | Emitted every time the console API methods are called from within the page JavaScript context. The arguments passed into the handler are defined by the [`ConsoleMessage`](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-browser/consolemessage) class. |
2626

2727
### Example
2828

2929
{{< code >}}
3030

3131
```javascript
32-
import { browser } from 'k6/x/browser';
32+
import { browser } from 'k6/browser';
3333
import { check } from 'k6';
3434

3535
export const options = {

docs/sources/v0.52.x/javascript-api/k6-browser/page/throttlenetwork.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ To work with the most commonly tested network profiles, import `networkProfiles`
3333
{{< code >}}
3434

3535
```javascript
36-
import { browser, networkProfiles } from 'k6/x/browser';
36+
import { browser, networkProfiles } from 'k6/browser';
3737

3838
export const options = {
3939
scenarios: {

docs/sources/v0.53.x/javascript-api/k6-browser/browsercontext/waitforevent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Waits for the event to fire and returns its value. If a predicate function has b
2727
<CodeGroup labels={[]}>
2828

2929
```javascript
30-
import { browser } from 'k6/x/browser';
30+
import { browser } from 'k6/browser';
3131

3232
export const options = {
3333
scenarios: {

docs/sources/v0.53.x/javascript-api/k6-browser/page/on.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ When using the `page.on` method, the page has to be explicitly [closed](https://
2929
{{< code >}}
3030

3131
```javascript
32-
import { browser } from 'k6/x/browser';
32+
import { browser } from 'k6/browser';
3333
import { check } from 'k6';
3434

3535
export const options = {

docs/sources/v0.53.x/javascript-api/k6-browser/page/throttlenetwork.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ To work with the most commonly tested network profiles, import `networkProfiles`
3333
{{< code >}}
3434

3535
```javascript
36-
import { browser, networkProfiles } from 'k6/x/browser';
36+
import { browser, networkProfiles } from 'k6/browser';
3737

3838
export const options = {
3939
scenarios: {

0 commit comments

Comments
 (0)