Forum Discussion

BP79's avatar
BP79
New Contributor
12 years ago

Click on a disabled menuitem

Hi,



I'm making a test fo a .NET application. I want to automate test if a menu item is disabled. What is the best approach? THX
  • Hi Peter,

    In a Script, the best way to know if an Item is disabled is to test the Enabled property.









    In KeywordTest use the "Property Checkpoint" in Checkpoints and selected the "Enabled" property. 



    You may also use the  "If Object" Test Action with the Enabled or Disabled condition if you want to use the result as a condition for other actions.



    please see also this thread.



    Christophe