No results for

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

browser instance

Returns the browser instance that this BrowserContext belongs to.

Returns

TypeDescription
BrowserThe Browser instance.

Example

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