No results for

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

isConnected()

attention

This feature has known issues. For details, refer to #453.

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/experimental/browser';
export default function () {
const browser = chromium.launch();
const isConnected = browser.isConnected();
console.log(isConnected); // true
browser.close();
}