Playwright · Middle · Question 45 of 75
What does page.clock help with?
- 1Controlling time to test timers and dates
- 2Syncing the CI clock with real time
- 3Measuring how long each action takes
Show the answer
Correct answer: Controlling time to test timers and dates
Explanation
clock.install() and clock.fastForward('30:00') test session expiry or countdowns without waiting.