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. |