Playwright Actionability: Stability checks during CSS transitions
0 reputation · 23 Dec 2020, 13:50 UTC
Playwright's auto-waiting mechanism ensures elements are actionable by verifying visibility, enablement, and stability before performing interactions. This process is critical for reducing flakiness in dynamic user interfaces.
A distinction exists in how the stability check handles different animation types. While JavaScript-driven movements are tracked, the behavior regarding elements moving via CSS transitions may vary depending on the browser engine and the specific transition property used.
When an element is transitioning its position or size, the stability check must determine if the element has reached a final state or is still in motion to avoid clicking the wrong coordinates.
- Does the stability check treat CSS-based transitions as unstable until the transition duration completes?
- Is there a configurable threshold for stability when dealing with continuous CSS animations?