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