No results for

Powered byAlgolia
⚠️ This documentation is outdated. Please visit grafana.com for the latest k6 documentation.📚

Closes the browser and all of its pages (if any were opened).

The Browser object cannot be used anymore and is considered disposed of.

Example

import { chromium } from 'k6/experimental/browser';
export default function () {
const browser = chromium.launch();
const context = browser.newContext();
context.newPage();
context.close();
browser.close();
}