Skip to content

Commit

Permalink
Update docs/sources/next/javascript-api/k6-experimental/browser/jshan…
Browse files Browse the repository at this point in the history
…dle/dispose.md

Co-authored-by: İnanç Gümüş <[email protected]>
  • Loading branch information
ankur22 and inancgumus committed Jun 18, 2024
1 parent a7dbd14 commit efbecd7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default async function () {
await page.goto('https://test.k6.io/');
const jsHandle = await page.evaluateHandle(() => document.head);

jsHandle.dispose();
await jsHandle.dispose();
const element = jsHandle.asElement();
await element.innerHTML(); // Error! JS handle is disposed
} finally {
Expand Down

0 comments on commit efbecd7

Please sign in to comment.