18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
how to check a disable item
Hello,
One of my button is disable and i want to check whether it is disable or enable for a particular user.
Here is the HTML code for that item-
<button class="gwt-Button simplebutton gwt-Button-left"
type="button" title="Manual correction" disabled="">
I tried below things but all are throwing error-
_assert(_div("Manual correction").gwt-Button simplebutton gwt-Button-left.indexOf("disabled") != -1)
_assertTrue(_button("Manual correction").readonly);
_assertEqual("gwt-Button simplebutton gwt-Button-left", _div("Manual correction").className);
Please let me know how can i will identify the disable button on webpage.
Gyanadeep
One of my button is disable and i want to check whether it is disable or enable for a particular user.
Here is the HTML code for that item-
<button class="gwt-Button simplebutton gwt-Button-left"
type="button" title="Manual correction" disabled="">
I tried below things but all are throwing error-
_assert(_div("Manual correction").gwt-Button simplebutton gwt-Button-left.indexOf("disabled") != -1)
_assertTrue(_button("Manual correction").readonly);
_assertEqual("gwt-Button simplebutton gwt-Button-left", _div("Manual correction").className);
Please let me know how can i will identify the disable button on webpage.
Gyanadeep
Answers
can u try this...
_assertTrue(_button("Manual correction").disabled);
Regards,
Bhavitha