getComputedLabel
Pobierz obliczoną etykietę WAI-ARIA elementu.
Użycie
$(selector).getComputedLabel()
Przykład
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"
})
Zwraca
- <String>
return
: obliczoną etykietę WAI-ARIA