UNPKG

self-healing-playwright

Version:

Self-healing locators for Playwright tests using AI-powered healing strategies

15 lines (14 loc) 481 B
import { FailureContext } from '../types'; export declare class LocatorCache { private cache; constructor(); getCachedLocator(originalLocator: string, context: FailureContext): Promise<string | null>; setCachedLocator(originalLocator: string, context: FailureContext, healedLocator: string): Promise<void>; private generateCacheKey; clearCache(): Promise<void>; getStats(): { hits: number; misses: number; keys: number; }; }