StrikekitStrikekit

set clock

Install Playwright clock and fix time to an ISO-8601 datetime

Install Playwright's clock and fix the browser time to an ISO-8601 RFC3339 datetime. Useful with booking flows and generate date tests.

Syntax

When I set clock to "<datetime>"

Qualifiers

QualifierRoleExample
toFixed ISO-8601 datetimeset clock to "2026-06-15T09:00:00.000Z"

Requirements

ItemContract
Element / control shapeNone — Playwright clock
How the label bindsISO-8601 / RFC3339 payload after to
Qualifiers that change resolveto
PlatformWeb only
Wrong shape → use insteadN/A

See also UI contracts.

Examples

When I set clock to "2026-06-15T09:00:00.000Z"

Notes

  • Web only. Appium / Platform: api return unsupported.

On this page