Playwright · Middle · Question 39 of 75

Why is waitForLoadState('networkidle') discouraged?

Show the answer

Correct answer: Many apps never go quiet, and it doesn't mean UI is ready

Explanation

Polling, analytics or websockets keep the network busy. Waiting for a visible element or a specific response is more reliable.

Further reading

Problem with a question

Playwright · Middle · question 39

Test yourself

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

Take this quiz