donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
35 lines • 1.29 kB
TypeScript
import { z } from 'zod/v4';
/**
* Zod schema passed to {@link GptClient.getStructuredOutput} so the LLM
* returns a mechanically constructable Playwright locator.
*/
export declare const LocateResultSchema: z.ZodObject<{
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
method: z.ZodEnum<{
frame: "frame";
frameLocator: "frameLocator";
}>;
selector: z.ZodOptional<z.ZodString>;
name: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>>;
steps: z.ZodArray<z.ZodObject<{
method: z.ZodEnum<{
getByLabel: "getByLabel";
getByPlaceholder: "getByPlaceholder";
getByRole: "getByRole";
getByTestId: "getByTestId";
getByText: "getByText";
locator: "locator";
}>;
role: z.ZodOptional<z.ZodString>;
name: z.ZodOptional<z.ZodString>;
text: z.ZodOptional<z.ZodString>;
testId: z.ZodOptional<z.ZodString>;
selector: z.ZodOptional<z.ZodString>;
exact: z.ZodOptional<z.ZodBoolean>;
nameIsRegex: z.ZodOptional<z.ZodBoolean>;
textIsRegex: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>>;
nth: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>;
//# sourceMappingURL=locateSchema.d.ts.map