Hi Mark,
My code is like that
Webelement element=driver.findelementbyxpath(//xpath)
boolean isEnabled =element.isEnabled()
This is returning as true even when the element is disabled.
The html of the app is like this.
1) When the button is enabled
<input name="Legend" title="Mass Scheduling" class="masSchBut masSchButdn" id="Legend" onmouseover="this.className = 'masSchBut masSchButdn'" onmouseout="this.className = 'masSchBut masSchButnor'" onclick="JavaScript:displayMassApptScreen();" type="button"/>
2) When the button is disabled
<input name="Legend" title="Mass Scheduling" class="masSchBut masSchButIs" id="Legend" type="button"/>
please notice that the class names are different in both the cases and events are not present when the button is disabled.
Thanks,
Sanam