Somewhere else here on stackoverflow I found someone using the all() function that exists on Locator in playwright. To get all the elements that match the locator criteria.
all()
Locator