Skip to main content

Module wait

Module wait 

Source
Expand description

Wait Mechanisms (PMAT-005) Wait Mechanisms (PMAT-005)

Playwright-compatible wait mechanisms for synchronization.

§EXTREME TDD: Tests written FIRST per spec Section 6.1

§Toyota Way Application

  • Jidoka: Automatic detection of ready state
  • Poka-Yoke: Type-safe wait conditions prevent invalid waits
  • Muda: Efficient polling reduces wasted CPU cycles

Structs§

FnCondition
A function-based wait condition
NavigationOptions
Options for navigation wait
WaitOptions
Options for wait operations
WaitResult
Result of a wait operation
Waiter
Waiter for synchronization operations

Enums§

LoadState
Page load states (Playwright parity)
PageEvent
Page event types (Playwright parity)

Constants§

DEFAULT_POLL_INTERVAL_MS
Default polling interval (50ms)
DEFAULT_WAIT_TIMEOUT_MS
Default timeout for wait operations (30 seconds)
NETWORK_IDLE_THRESHOLD_MS
Network idle threshold (500ms without requests)

Traits§

WaitCondition
Trait for custom wait conditions

Functions§

wait_timeout
Wait for a fixed duration (discouraged - use wait conditions instead)
wait_until
Wait for a condition with default options