No results for

Powered byAlgolia
⚠️ This is the archived documentation for k6 v0.45.

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();
}