Page locators are the better way to select elements in Playwright
Playwright offers different ways to select and access elements. Learn in this video why page locators ("page.locator") are preferred over element handles ("page.$").
Find more information in the Playwright documentation: https://playwright.dev/docs/locators#locator-vs-elementhandle