UNPKG

@testplane/webdriverio

Version:

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

20 lines (19 loc) 641 B
import type { ChainablePromiseArray } from '../../types.js'; /** * * Access `WebdriverIO.ElementArray` properties like `length` or `selector` from the elements reference. * * <example> :getElements.ts it('should allow me to inspect WebdriverIO.Element properties', async () => { const divs = await $$('div').getElements(); console.log(divs.length); // outputs: 43 }); * </example> * * @alias element.getElements * @return {Element} * @type utility * */ export declare function getElements(this: WebdriverIO.ElementArray | ChainablePromiseArray<WebdriverIO.Element>): Promise<WebdriverIO.ElementArray>;