UNPKG

donobu

Version:

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

28 lines 1.54 kB
import { Locator } from 'playwright'; import { ToolCallContext } from '../models/ToolCallContext'; import { ReplayableInteraction, AnnotationBasedParameters, SelectorBasedParameters } from './ReplayableInteraction'; export interface InputRandomizedEmailAddressToolCoreParameters { /** * The base email to create a derived email from. */ baseEmail: string; /** * Attempt to submit the data after inputting the randomized email (i.e. hitting 'Enter' at the end). */ finalizeWithSubmit: boolean; } export interface SelectorBasedInputRandomizedEmailAddressToolParameters extends SelectorBasedParameters, InputRandomizedEmailAddressToolCoreParameters { } export interface AnnotationBasedInputRandomizedEmailAddressToolParameters extends AnnotationBasedParameters, InputRandomizedEmailAddressToolCoreParameters { } export declare class InputRandomizedEmailAddressTool extends ReplayableInteraction<InputRandomizedEmailAddressToolCoreParameters, SelectorBasedInputRandomizedEmailAddressToolParameters, AnnotationBasedInputRandomizedEmailAddressToolParameters> { static readonly NAME = "inputRandomizedEmailAddress"; private static readonly CHARACTERS; private static readonly RANDOM_STRING_LENGTH; constructor(); invoke(_context: ToolCallContext, parameters: InputRandomizedEmailAddressToolCoreParameters, element: Locator): Promise<string>; private randomizeEmail; private generateRandomString; private clearField; } //# sourceMappingURL=InputRandomizedEmailAddressTool.d.ts.map