Playwright · Senior · Question 25 of 77
Why might a click land on the wrong item in a list that animates in?
- 1Playwright clicks the center of the whole page
- 2The element moved after its position was computed
- 3Animations disable Playwright's auto-waiting
Show the answer
Correct answer: The element moved after its position was computed
Explanation
Playwright waits for the element to be stable, but layout shifts by other elements can still move targets. Disable animations in tests or wait for the final state.