Playwright · Senior · Question 21 of 77

Why can headless and headed runs behave differently?

Show the answer

Correct answer: Focus, GPU, window size and timing differ

Explanation

Usually the difference is timing or viewport, not features. Use the same settings in CI and locally, and debug with traces.

Further reading

Problem with a question

Playwright · Senior · question 21

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