getComputedLabel
Bekomme das berechnete WAI-ARIA Label eines Elements.
Verwendung
$(selector).getComputedLabel()
Beispiel
getComputedLabel.js
it('should demonstrate the getComputedLabel command', async () => {
await browser.url('https://www.google.com/ncr')
const elem = await $('*[name="q"]');
console.log(await elem.getComputedLabel()); // outputs: "Search"
})
Rückgabewert
- <String>
return
: das berechnete WAI-ARIA Label