Add function enabled/disabled element
In previuos test applications we can check if a button is enabled or disabled.
It would be a great help in our daily work
In previuos test applications we can check if a button is enabled or disabled.
It would be a great help in our daily work
Log in to comment and vote
Comments5
Oct 23, 2025
PinnedAssertions “Element is disabled” and “Element is not disabled” have arrived!
Ecasaseca
Jun 6, 2025
Check enabled element and check disabled element
Paweł Bylina
Jun 6, 2025
Hmm, I agree, this should be done. Right now, you can achieve this using a custom JS assertion only.
Ecasaseca
Jun 9, 2025
I try with several combinations, like:
But I have not succeeded
Paweł Bylina
Jun 9, 2025
You should use:
return document.getElementbyType(‘submit’).disabled === true;
Btw. please ask those questions on support support@bugbug.io