Testing that a button is active or editable


#1

I have buttons on the website I test that should not be “editable” or clickable until all of the required fields are populated and the field validation for each input has passed. Is there a way to do this with Kantu. Sorry if this is an elementary question but I am a new convert from selenium to Kantu and still figuring out how to accomplish that which my old selenium tests did.


#2

Selenium IDE has verify editable for verification on input elements like text box, buttons, check box, radio buttons. Kantu does not have this yet (but will soon!).

What you can use right now is Javascript with the storeEval command:

document.getElementById('textbox1').disabled

See here: https://stackoverflow.com/questions/29765151/check-if-textbox-disabled-or-enabled-in-javascript