UNPKG

testgenius-ai

Version:

๐Ÿš€ TestGenius AI - The Ultimate E2E Testing Framework for Everyone | No Coding Required โ€ข AI-Powered Automation โ€ข Beautiful Reports โ€ข Zero Complexity

47 lines โ€ข 1.11 kB
import { Browser } from 'webdriverio'; export interface ElementMatch { element: any; confidence: number; strategy: string; selector: string; } export interface DetectionStrategy { name: string; priority: number; selectors: string[]; description: string; } export declare class SmartElementDetector { private browser; private cache; private pageContext; constructor(browser: Browser); /** * ๐Ÿš€ Fast element detection with multiple strategies */ detectElement(description: string, elementType?: string): Promise<ElementMatch | null>; /** * ๐ŸŽฏ Generate detection strategies (Fast, no AI) */ private generateStrategies; /** * โšก Try a specific strategy */ private tryStrategy; /** * ๐Ÿ“Š Calculate confidence score */ private calculateConfidence; /** * ๐Ÿงน Clear cache */ clearCache(): void; /** * ๐Ÿ“ˆ Get cache statistics */ getCacheStats(): { size: number; hitRate: number; }; } //# sourceMappingURL=SmartElementDetector.d.ts.map