No results for

Powered byAlgolia

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/x/browser';
export default function () {
const browser = chromium.launch();
const context = browser.newContext();
context.newPage();
context.close();
browser.close();
}