Forum Discussion

rickh_28's avatar
rickh_28
Occasional Contributor
10 years ago

Checking for context menu items

The software I'm testing includes a tree view that has several folders that can be renamed (via "rename" in the context menu) and several that cannot.  I'm trying to test that "rename" is not an option in the context menu for those folders, but I'm having a hard time figuring out how to do that.  Suggestions?

1 Reply

  • I do a similar test (web based) and I check the class name of the menu items - they differ for enabled and disabled items.  I also have a similar check using the .Exists property - to see if certain items exist or not.