UNPKG

donobu

Version:

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

13 lines 661 B
import type { Locator, Page } from 'playwright-core'; import type { LocateResult } from './locateTypes'; /** * Mechanically construct a Playwright {@link Locator} from a structured * {@link LocateResult}. No `eval` or string parsing — every branch maps to a * direct Playwright API call. * * When `envData` is supplied, `{{$.env.X}}` placeholders inside `text`, * `name`, and `testId` step fields are resolved against it before being * applied. `selector` and `frames[]` are left untouched. */ export declare function buildLocator(page: Page, result: LocateResult, envData?: Record<string, string>): Locator; //# sourceMappingURL=buildLocator.d.ts.map