Returns the browser instance that this BrowserContext belongs to.
Type | Description |
---|---|
Browser | The Browser instance. |
import { chromium } from 'k6/experimental/browser';
export default function () { const browser = chromium.launch(); const context = browser.newContext(); const contextBrowser = context.browser(); contextBrowser.close();}