20 lines
667 B
TypeScript
20 lines
667 B
TypeScript
|
|
import type { ChainablePromiseElement } from '../../types.js';
|
||
|
|
/**
|
||
|
|
*
|
||
|
|
* Access `WebdriverIO.Element` properties like `selector` or `elementId` from the element reference.
|
||
|
|
*
|
||
|
|
* <example>
|
||
|
|
:getElement.ts
|
||
|
|
it('should allow me to inspect WebdriverIO.Element properties', async () => {
|
||
|
|
const elem = await $('#elem').getElement();
|
||
|
|
console.log(elem.selector); // outputs: '#elem'
|
||
|
|
});
|
||
|
|
* </example>
|
||
|
|
*
|
||
|
|
* @alias element.getElement
|
||
|
|
* @return {WebdriverIO.Element}
|
||
|
|
* @type utility
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
export declare function getElement(this: WebdriverIO.Element | ChainablePromiseElement): Promise<WebdriverIO.Element>;
|
||
|
|
//# sourceMappingURL=getElement.d.ts.map
|