UNPKG

web-snaps

Version:

Browser automation with automatic snapshotting.

21 lines (20 loc) 492 B
import { type BrowserContext, type Page } from 'rebrowser-playwright'; /** * A loaded browser instance with context and store key. * * @category Internal */ export type LoadedBrowser<Context> = { browserContext: BrowserContext; storeKey: string; context: Context; }; /** * {@link LoadedBrowser} with a loaded Playwright Page as well. * * @category Internal */ export type LoadedBrowserPage<Context> = LoadedBrowser<Context> & { page: Page; originalUrl: string; };