getElement
Access WebdriverIO.Element
properties like selector
or elementId
from the element reference.
Usage
$(selector).getElement()
Example
getElement.ts
it('should allow me to inspect WebdriverIO.Element properties', async () => {
const elem = await $('#elem').getElement();
console.log(elem.selector); // outputs: '#elem'
});