मुख्य सामग्री पर जाएं

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 लेबल

Welcome! How can I help?

WebdriverIO AI Copilot