This thread is trying to answer question "No question was asked as the thread is empty."
Playwright some time ago introduced test-library inspired locators which are using accessibility roles. I think that is nowadays the best practice from Playwright's perspective. https://playwright.dev/docs/best-practices#prefer-user-facing-attributes-to-xpath-or-css-selectors
But what works best in your situation is a case of YMMV (your mileage may vary). Every application is different.
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].