UNPKG

webdriverio

Version:

Next-gen browser and mobile automation test framework for Node.js

30 lines • 979 B
type SelectorStrategy = string | { name: string; args: string; }; /** * Quote a string as an XPath 1.0 literal so user-provided labels cannot * break out of the surrounding quotes. */ export declare function escapeXPathString(value: string): string; /** * XPath approximation of an accessible name lookup. * Used for WebDriver Classic sessions and as a fallback when BiDi * accessibility locators are unavailable. */ export declare function getAriaXPathSelector(label: string): string; export interface RoleSelector { role: string; name?: string; } /** * Parse `role/<role>` or `role/<role>[name="<accessible name>"]`. Quotes * inside the name are escaped with a backslash. */ export declare function parseRoleSelector(selector: string): RoleSelector; export declare const findStrategy: (selector: SelectorStrategy, isMobile?: boolean, isBidi?: boolean) => { using: string; value: string; }; export {}; //# sourceMappingURL=findStrategy.d.ts.map