No results for

Powered byAlgolia
warning

See issue #453 for details of a known issue.

Indicates whether the CDP connection to the browser process is active or not.

Returns

TypeDescription
booleanReturns true if Browser is connected to the browser application. Otherwise, returns false.

Example

import { chromium } from 'k6/x/browser';
export default function () {
const browser = chromium.launch();
const isConnected = browser.isConnected();
console.log(isConnected); // true
browser.close();
}