Description
🚀 Feature Request
Actions like locator.click()
automatically perform a series of actionability checks to ensure that the target locator can be acted upon. Users can choose to ignore all actionability checks using the option force: true
, but there's no way to specifically ignore just one actionability check. I think it would be useful to have a way to specify which actionability check to ignore.
Example
Imagine we want to click a button that is constantly animated (e.g. a small "breathing" animation). Since button.click()
checks for stability before clicking, the only way to click this button is with force: true
. But that forces us to skip all other actionability checks, even though we just want to ignore the stability check.
We could use something like await button.waitFor()
to verify visibility, but then we still can't check that the button is enabled without resorting to an expect
. And then there doesn't seem to be another way to check that the button can receive events.
Motivation
Including the option to ignore specific actionability checks would allow users to take advantage of Playwright's excellent auto-waiting capabilities to write more stable tests in cases where they would otherwise be forced to use force: true
.