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
- Navigation
Options - Options for navigation wait
- Wait
Options - Options for wait operations
- Wait
Result - Result of a wait operation
- Waiter
- Waiter for synchronization operations
Enums§
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§
- Wait
Condition - 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