This thread is trying to answer question "How can I group elements with the same 'data-testid' into an array for iteration and assertion in Playwright?"
I found a solution in the docs after all,
using the method all()
on Locator
https://playwright.dev/docs/api/class-locator#locator-all
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].