Playwright · Senior · Question 25 of 77

Why might a click land on the wrong item in a list that animates in?

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.

Further reading

Problem with a question

Playwright · Senior · question 25

Test yourself

Take the Playwright · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz