Skip to content

Commit 1d2d85e

Browse files
ankur22inancgumus
authored andcommitted
Fix example and close declared page instances
1 parent 76a32df commit 1d2d85e

File tree

1 file changed

+2
-1
lines changed
  • src/data/markdown/docs/02 javascript api/07 k6-experimental/01 browser

1 file changed

+2
-1
lines changed

src/data/markdown/docs/02 javascript api/07 k6-experimental/01 browser/context.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ export default function () {
4343
const context = browser.context(); // underlying live browserContext associated with browser
4444
const page2 = context.newPage(); // shares the browserContext with page1
4545

46-
page.close();
46+
page1.close();
47+
page2.close();
4748
context.close();
4849
}
4950
```

0 commit comments

Comments
 (0)