/** * screenshot-manager.ts * * Captures full-page PNG screenshots from a live Playwright page and saves * them to the artifacts directory. * * Screenshots are taken at two key moments in the execution pipeline: * - When a step fails, so developers can see the page state at failure time. * - When the heal_test MCP tool is invoked, to provide visual context. * * Each screenshot is saved with a descriptive name and a millisecond timestamp * suffix to avoid collisions when the same step fails multiple times. * * Role in the overall flow: * FailureHandler / healTest → ScreenshotManager.capture() */ import { Page } from 'playwright'; /** * Takes full-page screenshots and writes them to the screenshots sub-directory * inside the configured artifacts folder. */ export declare class ScreenshotManager { private screenshotsDir; /** * @param artifactsDir - Root artifacts directory. Screenshots will be placed * in a "screenshots" sub-folder within this directory. */ constructor(artifactsDir: string); /** * Capture a full-page screenshot of the current browser page and save it to disk. * * @param page - The live Playwright page to capture. * @param name - A descriptive label used as the filename prefix * (e.g. "failure-step-3" or "heal-step-2"). * @returns The absolute file path of the saved PNG file. */ capture(page: Page, name: string): Promise; } //# sourceMappingURL=screenshot-manager.d.ts.map