getElement
Accede a las propiedades de WebdriverIO.Element
como selector
o elementId
desde la referencia del elemento.
Uso
$(selector).getElement()
Ejemplo
getElement.ts
it('should allow me to inspect WebdriverIO.Element properties', async () => {
const elem = await $('#elem').getElement();
console.log(elem.selector); // outputs: '#elem'
});
Retorna
- <WebdriverIO.Element>