getElement
Dostęp do właściwości WebdriverIO.Element
takich jak selector
lub elementId
z referencji elementu.
Użycie
$(selector).getElement()
Przykład
getElement.ts
it('should allow me to inspect WebdriverIO.Element properties', async () => {
const elem = await $('#elem').getElement();
console.log(elem.selector); // outputs: '#elem'
});
Zwraca
- <WebdriverIO.Element>