@wdio/appium-service
Version:
A WebdriverIO service to start & stop Appium Server
30 lines • 1.09 kB
TypeScript
/**
* Detects XPath features that cannot be mapped to predicate strings or class chains.
*
* @param xpath - The XPath selector to analyze
* @returns Array of unmappable feature names
*/
export declare function detectUnmappableXPathFeatures(xpath: string): string[];
/**
* Checks if an XPath is complex (contains OR, AND, contains, etc.).
* Used to determine if we should skip accessibility ID conversion.
*
* @param xpath - The XPath selector to check
* @returns True if XPath contains complex patterns
*/
export declare function isComplexXPath(xpath: string): boolean;
/**
* Extracts the element type from an XPath selector.
*
* @param xpath - The XPath selector
* @returns The element type (e.g., 'XCUIElementTypeButton') or null
*/
export declare function extractElementTypeFromXPath(xpath: string): string | null;
/**
* Checks if an XPath uses a wildcard selector.
*
* @param xpath - The XPath selector
* @returns True if the XPath starts with //*
*/
export declare function isWildcardXPath(xpath: string): boolean;
//# sourceMappingURL=xpath-detection.d.ts.map