You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Flaky test because of Selenide clicking disabled element and not failing.
Details
In our project, from time to time running post requests disable all submit buttons and then clicking those by Selenide just has no effect, making the test fail later on, which is harder to diagnose.
We propose failing the test if trying to click a disabled button (after the usual timeout of course).
There are no legitimate use cases of actually clicking disabled buttons, because it has no effect by design.
If somebody wants to check if the button is disabled or not, they can just use shouldBe(disabled)
Tell us about your environment
selenide:6.13.1
The text was updated successfully, but these errors were encountered:
Maybe we are talking about different things, but what happens in your attributes? had a similar case and helped shouldBe(Condition.atrribute(as Example "aria-disabled","true"))
* #2288 Wait until element becomes enabled before click
Before the change the clicked element had to be `interactable`, but after the change it must be `clickable: interactable and enabled`
The problem
Flaky test because of Selenide clicking disabled element and not failing.
Details
In our project, from time to time running post requests disable all submit buttons and then clicking those by Selenide just has no effect, making the test fail later on, which is harder to diagnose.
We propose failing the test if trying to click a disabled button (after the usual timeout of course).
There are no legitimate use cases of actually clicking disabled buttons, because it has no effect by design.
If somebody wants to check if the button is disabled or not, they can just use
shouldBe(disabled)
Tell us about your environment
selenide:6.13.1
The text was updated successfully, but these errors were encountered: