Locators
Selectors and locators
Locators are the central piece of Playwright's auto-waiting and retry-ability. In a nutshell, locators represent a way to find element(s) on the page at any moment.
Basic Locators
Locate by title
Locate label
Locate by placeholder
Checkout the official documentation for more details.