Locator
A way to find elements by role, label or text.
What is Locator?
Used in Playright, it finds elements the way a user would, by role, label or text, and waits for them automatically.
page.getByRole('button', { name: 'Save' })
Level: Freelancer · More Unit Testing terms at this level
Updated