UNPKG

webdriverio

Version:

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

21 lines • 1.34 kB
/** * Check, for each of `elementIds`, whether it's a real DOM descendant of `scope` * (crossing shadow boundaries via `.host`), in a single round trip with per-element * fallback. */ export declare function checkElementsContainedIn(browser: WebdriverIO.Browser, scope: string, elementIds: string[], contextId?: string, onElementCheckError?: (elementId: string) => void): Promise<boolean[]>; /** * Check, for each of `elementIds`, whether it's still connected to the live DOM, * in a single round trip with per-element fallback. Stale references that can't be * resolved at all count as not connected. */ export declare function checkElementsConnected(browser: WebdriverIO.Browser, elementIds: string[], contextId?: string, onElementCheckError?: (elementId: string) => void): Promise<boolean[]>; /** * The link text strategies of the spec: check, for each `<a>` of `elementIds`, whether * its rendered text, trimmed, equals (`link text`) or contains (`partial link text`) * `value`. In a single round trip with per-element fallback. * * @see https://w3c.github.io/webdriver/#link-text */ export declare function checkLinksMatchText(browser: WebdriverIO.Browser, elementIds: string[], using: 'link text' | 'partial link text', value: string, contextId?: string): Promise<boolean[]>; //# sourceMappingURL=elementChecks.d.ts.map