property WatchSession.browser

Playwright's Browser for this session — unstable, playwright-core's type.

import type { WatchSession } from './watch.ts';

// Defined, not invoked: needs a live session.
async function contexts(session: WatchSession) {
  return session.browser.contexts().length;
}

Type

Browser

Usage

import { type WatchSession } from "lib/api/watch.ts";