No results for

Powered byAlgolia
⚠️ This is archived documentation for v0.43. Go to the latest version

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