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 whether the tab is enabled.
Hi all,
I have tried with 'isDisabled' property,but it is always returning as 'false' when tab selected/not selected.
so please help me to check the enabled property of an tab using sahi.
I have tried with 'isDisabled' property,but it is always returning as 'false' when tab selected/not selected.
so please help me to check the enabled property of an tab using sahi.
This discussion has been closed.
Comments
<td id="groupSubscribers_lbl" onmouseover="RichFaces.overTab(this);"
onmouseout="RichFaces.outTab(this);"
class="dr-tbpnl-tb rich-tab-header dr-tbpnl-tb-inact rich-tab-inactive ">Show Users</td>
my problem hav't been solved . can any help me to resolve this problem.
Regards
Priya
Its working, I have used the following code:
var $tabshowusers;
_set($tabshowusers,_assertTrue(_cell("groupSubscribers_lbl").className.indexOf("rich-tab-disabled") != -1));
_alert($tabshowusers);
This returns true if the tab is disabled.
var $tabshowusers;
_set($tabshowusers,_assertTrue(_cell("groupSubscribers_lbl").className.indexOf("rich-tab-active") != -1));
_alert($tabshowusers);
This returns true if the tab is enabled and selected.
var $tabshowusers;
_set($tabshowusers,_assertTrue(_cell("groupSubscribers_lbl").className.indexOf("rich-tab-inactive") != -1));
_alert($tabshowusers);
This returns true if the tab is enabled and not selected.
Glad it worked. However, the use of _assertTrue is incorrect in your code (even though it works).
You can just do: No need to add _assertTrue.
how to check a button is disable..i tried with "isdisabled"
"_isdisabled" is not defined.
Thanks
Rambabu
i need help...
how to use isDisabled in an if condition??
i want to check if it is disabled, then logs a message "combobox was disabled"..
tnx for your help...
if(_condition((_select("cboAccount")).disabled)){
_log("Combo box was disabled.","custom3");
}
else if(!_condition((_select("cboAccount")).disabled)){
_log("Combo box was enabled.","custom3");
}
Regards,
Narayan