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.
Verifying whether a button is enabled or disabled
How to check that a button is enabled or disabled
I used the following code, but it didnot worked
_assertTrue(_submit("Log in").enabled);
Actually I need to verify whether the button is enabled or disabled. If enabled, then I need to send a message to log that the button is enabled and if it is disabled, I need to send log message that the button is disabled.
I am viewing the default logs generated by Sahi
I used the following code, but it didnot worked
_assertTrue(_submit("Log in").enabled);
Actually I need to verify whether the button is enabled or disabled. If enabled, then I need to send a message to log that the button is enabled and if it is disabled, I need to send log message that the button is disabled.
I am viewing the default logs generated by Sahi
Comments
The DOM element does not have an "enabled" property.