UNPKG

@wdio/appium-service

Version:
64 lines 2.21 kB
/** * XPath axes that cannot be mapped to predicate strings or class chains. * * These axes require traversing UP the tree (parent/ancestor), * SIDEWAYS (siblings), or by document order - none of which are * supported by predicate strings or class chains. */ export declare const UNMAPPABLE_XPATH_AXES: readonly [{ readonly pattern: RegExp; readonly name: "ancestor axis"; }, { readonly pattern: RegExp; readonly name: "ancestor-or-self axis"; }, { readonly pattern: RegExp; readonly name: "following-sibling axis"; }, { readonly pattern: RegExp; readonly name: "preceding-sibling axis"; }, { readonly pattern: RegExp; readonly name: "following axis"; }, { readonly pattern: RegExp; readonly name: "preceding axis"; }, { readonly pattern: RegExp; readonly name: "parent axis"; }, { readonly pattern: RegExp; readonly name: "parent axis"; }]; /** * XPath functions that cannot be mapped to predicate strings or class chains. */ export declare const UNMAPPABLE_XPATH_FUNCTIONS: readonly [{ readonly pattern: RegExp; readonly name: "normalize-space() function"; }, { readonly pattern: RegExp; readonly name: "position() function"; }, { readonly pattern: RegExp; readonly name: "count() function"; }]; /** * Patterns that indicate a complex XPath requiring predicate/class chain conversion * (not suitable for simple accessibility ID conversion). */ export declare const COMPLEX_XPATH_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp]; /** * Priority order of attributes for building unique selectors. * Meaningful attributes first, then boolean attributes. */ export declare const ATTRIBUTE_PRIORITY: readonly ["name", "label", "value", "enabled", "visible", "accessible", "hittable"]; /** * Attributes that contain meaningful identifying information. */ export declare const MEANINGFUL_ATTRIBUTES: readonly ["name", "label", "value"]; /** * Boolean attributes that may help with uniqueness but are less reliable. */ export declare const BOOLEAN_ATTRIBUTES: readonly ["enabled", "visible", "accessible", "hittable"]; //# sourceMappingURL=xpath-constants.d.ts.map