UNPKG

@coinbase/onchaintestkit

Version:

End-to-end testing toolkit for blockchain applications, powered by Playwright

17 lines (16 loc) 439 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.allTextContents = allTextContents; /** * Get all text contents from an array of locators */ async function allTextContents(locators) { const textContents = []; for (const locator of locators) { const text = await locator.textContent(); if (text) { textContents.push(text); } } return textContents; }