donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
15 lines • 768 B
TypeScript
import type { Page } from 'playwright';
/**
* Registers Playwright page event listeners that route browser console messages
* and network request/response data to the {@link browserLogger} and
* {@link networkLogger} Winston loggers. These loggers include a
* {@link FlowLogBufferTransport} that captures entries into the per-flow
* log buffer (when one is available via AsyncLocalStorage or the process-local
* fallback).
*
* This function is called from both {@link WebTargetInspector.handleNewPage}
* (Studio-launched flows) and the Playwright test extension fixture, ensuring
* identical logging behaviour across both runtime contexts.
*/
export declare function registerPageLogListeners(page: Page): void;
//# sourceMappingURL=PageLogListeners.d.ts.map