getComputedLabel
Obter o rótulo WAI-ARIA computado de um elemento.
Uso
$(selector).getComputedLabel()
Exemplo
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"
})
Retorna
- <String>
return
: o rótulo WAI-ARIA computado