Testing · Middle · Question 43 of 75
What is a Playwright locator?
- ✓Correct answer: A lazy description of how to find an element; it is resolved again on every action, so it never goes stale
- 2A reference to a DOM element captured once
- 3A CSS selector string
Explanation
Unlike ElementHandle, a locator is re-evaluated each time - re-renders don't break it.