Locator Priority, getByRole() in Playwright Which attributes can Playwright use? Locator Uses getByRole() Accessible role + accessible name getByLabel() Associated <label> text getByPlaceholder() placeholder attribute getByAltText() alt attribute getByTitle() title attribute getByTestId() data-testid (or configured Read more »