Testing · Junior · Question 63 of 78
Do you need sleep/waitForTimeout before clicking in Playwright?
- ✓Correct answer: No: actions wait automatically until the element is visible, stable, enabled and receives events
- 2Yes: always wait a second before each click
- 3Yes, but only in headless mode
Explanation
Fixed waits make tests slow and still flaky. Rely on auto-waiting and web-first assertions.