getElement
Accedi alle proprietà di WebdriverIO.Element
come selector
o elementId
dal riferimento dell'elemento.
Utilizzo
$(selector).getElement()
Esempio
getElement.ts
it('should allow me to inspect WebdriverIO.Element properties', async () => {
const elem = await $('#elem').getElement();
console.log(elem.selector); // outputs: '#elem'
});
Restituisce
- <WebdriverIO.Element>