Testing · Middle · Question 44 of 75
What does strictness mean for Playwright locators?
- ✓Correct answer: An action fails if the locator matches more than one element
- 2Locators are case-sensitive
- 3Only
getByRolemay be used
Explanation
Narrow the locator (filter, chaining, name) or use .first() deliberately.