@wdio/appium-service
Version:
A WebdriverIO service to start & stop Appium Server
20 lines • 857 B
TypeScript
/**
* Functions for validating selector uniqueness in page source XML.
*/
/**
* Tests if a selector matches exactly one element by parsing the page source XML.
*
* @param selector - The selector to test
* @param pageSource - The page source XML to search in
* @returns True if exactly one element matches the selector
*/
export declare function isSelectorUniqueInPageSource(selector: string, pageSource: string): boolean;
/**
* Counts elements matching a predicate string by parsing page source XML.
*/
export declare function countMatchingElementsByPredicate(predicateString: string, pageSource: string): number;
/**
* Counts elements matching a class chain by parsing page source XML.
*/
export declare function countMatchingElementsByClassChain(chainString: string, pageSource: string): number;
//# sourceMappingURL=xpath-page-source.d.ts.map