Skip to content

Latest commit

 

History

History
12 lines (11 loc) · 4.7 KB

k6-browser-module.md

File metadata and controls

12 lines (11 loc) · 4.7 KB
title
javascript-api/k6-browser-module
Method Description
browser.closeContext() Closes the current BrowserContext.
browser.context() Returns the current BrowserContext.
browser.isConnected {{< docs/bwipt id="453" >}} Indicates whether the CDP connection to the browser process is active or not.
browser.newContext([options]) {{< docs/bwipt id="455" >}} Creates and returns a new BrowserContext.
browser.newPage([options]) {{< docs/bwipt id="455" >}} Creates a new Page in a new BrowserContext and returns the page. Pages that have been opened ought to be closed using Page.close. Pages left open could potentially distort the results of Web Vital metrics.
browser.version() Returns the browser application's version.