This commit is contained in:
Simon Knott 2024-10-01 17:02:33 +02:00
parent e271aa9f7f
commit 56a99364f7
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC
2 changed files with 8 additions and 2 deletions

View file

@ -249,7 +249,9 @@ Time to be set.
## async method: Clock.setSystemTime ## async method: Clock.setSystemTime
* since: v1.45 * since: v1.45
Sets current system time without pausing, but does not trigger any timers. You most likely don't need this. Sets system time, but does not trigger any timers. Use this to test how the web page reacts to a time shift, for example switching from summer to winter time, or changing time zones.
Don't use together with [`method: Clock.install`]. Read docs on [clock emulation](../clock.md) to learn more.
**Usage** **Usage**

View file

@ -18555,7 +18555,11 @@ export interface Clock {
setFixedTime(time: number|string|Date): Promise<void>; setFixedTime(time: number|string|Date): Promise<void>;
/** /**
* Sets current system time without pausing, but does not trigger any timers. You most likely don't need this. * Sets system time, but does not trigger any timers. Use this to test how the web page reacts to a time shift, for
* example switching from summer to winter time, or changing time zones.
*
* Don't use together with [clock.install([options])](https://playwright.dev/docs/api/class-clock#clock-install). Read
* docs on [clock emulation](https://playwright.dev/docs/clock) to learn more.
* *
* **Usage** * **Usage**
* *