getElement
Accède aux propriétés WebdriverIO.Element
comme selector
ou elementId
à partir de la référence d'élément.
Utilisation
$(selector).getElement()
Exemple
getElement.ts
it('should allow me to inspect WebdriverIO.Element properties', async () => {
const elem = await $('#elem').getElement();
console.log(elem.selector); // outputs: '#elem'
});
Retourne
- <WebdriverIO.Element>