Testing · Junior · Question 63 of 78

Do you need sleep/waitForTimeout before clicking in Playwright?

Explanation

Fixed waits make tests slow and still flaky. Rely on auto-waiting and web-first assertions.

Further reading

Problem with a question

Testing · Junior · question 63

Test yourself

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

Take this quiz