- page.getByRole(): Used to locate elements by explicit and implicit accessibility attributes.
- page.getByText(): Used to locate elements by text content.
- page.getByLabel(): Used to locate form controls by associated label text.
- page.getByPlaceholder(): Used to locate inputs by their placeholder attribute.
- page.getByAltText(): Used to locate elements, typically images, by their text alternative.
- page.getByTitle(): Used to locate elements by their title attribute.
- page.getByTestId(): Used to locate elements based on their data-testid attribute (other attributes can be configured).