getComputedLabel
ஒரு உறுப்பின் கணக்கிடப்பட்ட WAI-ARIA லேபிளைப் பெறுங்கள்.
பயன்பாடு
$(selector).getComputedLabel()
எடுத்துக்காட்டு
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"
})
திரும்பப் பெறுபவை
- <String>
return
: கணக்கிடப்பட்ட WAI-ARIA லேபிள்