INNER CODE UNIT · TypeScript
languageInformation
pegaltier/awesome-utils-dev · utils-script/playwright-snippets.ts:36
let languageInformation = await forEachMatch(languageLinkLocator, async languageLink => {
// Inside this action function, we can focus solely on using the languageLink Locator object to scrape data or perform actions
let href = await languageLink.getAttribute('href');
let name = await languageLink.locator('strong').innerText();
return [href, name];
});
console.log(languageInformation);
});