Skip to content
masterclass Buddy

Playwright · Class

Clock

Playwright's Clock lets tests control browser time. It can install fake timers, advance or pause time, resume it, or set a fixed or system time.

Last updated

Since
v1.45

Syntax

page.clock.install(time=...)
page.clock.fast_forward(ticks)
page.clock.run_for(ticks)
page.clock.pause_at(time)
page.clock.resume()
page.clock.set_fixed_time(time)
page.clock.set_system_time(time)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • clock.fast_forward
  • clock.install
  • clock.pause_at
  • clock.resume
  • clock.run_for
  • clock.set_fixed_time
  • clock.set_system_time

Source: Clock | Playwright Python. Checked 2026-11-03.