UNPKG

locatai-ts

Version:

Enterprise-grade AI-powered element locator for Selenium WebDriver - TypeScript implementation

32 lines 1.01 kB
/** * Interface for locator timing implementations */ export interface ILocatorTiming { /** * Record the time taken to find an element * @param url The URL of the page * @param query The natural language query * @param domHash Hash of the page DOM * @param elapsedSeconds Time taken in seconds */ record(url: string, query: string, domHash: string, elapsedSeconds: number): Promise<void>; /** * Get timing information for a specific URL, query and DOM hash * @param url The URL of the page * @param query The natural language query * @param domHash Hash of the page DOM * @returns Timing information or null if not found */ get(url: string, query: string, domHash: string): Promise<{ count: number; total: number; min: number; max: number; avg: number; } | null>; /** * Clears all timing information */ clear(): Promise<void>; } //# sourceMappingURL=ILocatorTiming.d.ts.map