Page 1 of 1

Desktop context menu

Posted: Sun Sep 13, 2009 5:45 pm
by rajeshmr
I am looking for way on how best to test a desktop context menu. Is there a better way for finding sub-menus by looping and finding all sub-menus or do I need to know what sub-menu to expect under each menu item?

Thanks,

Re: Desktop context menu

Posted: Mon Sep 14, 2009 4:07 am
by rajeshmr
I found the method I was looking for menu.FindDescendants<MenuItem>()

Thanks!