UNPKG

@wdio/appium-service

Version:
26 lines 1.25 kB
import type { XPathCondition } from './xpath-types.js'; /** * Extracts all conditions from an XPath expression. * Handles OR conditions, contains, starts-with, ends-with, text(), and substring(). * * @param xpath - The XPath selector to extract conditions from * @returns Array of extracted conditions */ export declare function extractXPathConditions(xpath: string): XPathCondition[]; /** * Converts a single XPath condition to predicate syntax (NSPredicate or Class Chain). * * @param condition - The condition to convert * @param quoteStyle - Quote style to use: 'single' for predicate strings, 'double' for class chain * @returns Predicate string representation */ export declare function convertConditionToPredicate(condition: XPathCondition, quoteStyle?: 'single' | 'double'): string; /** * Groups OR conditions together and converts them to predicate syntax. * * @param conditions - Array of conditions to group * @param quoteStyle - Quote style to use: 'single' for predicate strings, 'double' for class chain * @returns Array of grouped condition strings */ export declare function groupOrConditions(conditions: XPathCondition[], quoteStyle?: 'single' | 'double'): string[]; //# sourceMappingURL=xpath-conditions.d.ts.map