I have an element with a CSS animation that makes it bounce a little. My Playwright test times out because the element never becomes stable. Its bounding box keeps changing because of the animation.
I could disable the animation for the tests as a workaround. But I wonder if it's possible to disable the auto-waiting for stability instead?
With Playwright, you can pass the force
property to the click
method to ignore waiting for element stability:
myElement.click({ force: true });
Docs Reference: https://playwright.dev/docs/input#forcing-the-click