UNPKG

web-snaps

Version:

Browser automation with automatic snapshotting.

10 lines (9 loc) 449 B
import { type Page } from 'rebrowser-playwright'; /** * Extract all HTML from a Playwright Page, including all shadow DOM HTML, even from closed shadow * roots! This requires a browser page that has been started with `withBrowserContext`, * `setupBrowser`, or `initBrowser` from this package. * * @category Internal */ export declare function getAllPageHtml(page: Readonly<Page>, storeKey: string, includeComments?: boolean): Promise<string>;