UNPKG

donobu

Version:

Create browser automations with an LLM agent and replay them as Playwright scripts.

21 lines 948 B
import type { BrowserContext, Frame, Page } from 'playwright'; import type { PageInspector } from '../managers/PageInspector'; import type { NamedBindingCallback } from './NamedBindingCallback'; /** * A binding that sets or unsets the annotations on the page executing this callback. * This is used for debugging purposes to show the interactable elements on the page * as understood by the Donobu engine. */ export declare class SetDonobuAnnotations implements NamedBindingCallback { private readonly pageInspector; static readonly NAME = "__donobuSetAnnotations"; static register(pageInspector: PageInspector, browserContext: BrowserContext): Promise<SetDonobuAnnotations>; constructor(pageInspector: PageInspector); name(): string; call(source: { context: BrowserContext; page: Page; frame: Frame; }, ...args: unknown[]): Promise<void>; } //# sourceMappingURL=SetDonobuAnnotations.d.ts.map