پرش به محتوای اصلی

دریافت المان‌ها

دسترسی به ویژگی‌های WebdriverIO.ElementArray مانند length یا selector از مرجع عناصر.

استفاده
$(selector).getElements()
مثال
getElements.ts
it('should allow me to inspect WebdriverIO.Element properties', async () => {
const divs = await $$('div').getElements();
console.log(divs.length); // outputs: 43
});
برگشتی
  • <WebdriverIO.ElementArray>

Welcome! How can I help?

WebdriverIO AI Copilot