Add a method or an option to handle menus by menu item text like TestPartner where the full path of the menu item as it appears on the menu
Add a method or an option to handle menus by menu item text like TestPartner where the full path of the menu item as it appears on the menu is specified as input.
This should walk the Window’s menu and select each menu item specified in the menu text. This should work across all types of windows including Win32, FormsWindow, and even Infragistics Menus.
We currently have over 14,000 TestPartner Test Cases written this way.
Silk’s current mechanisms for handling menus do not provide a fool proof method for performing menu selects. The entire Menu Path is not taken into consideration and will click on the wrong item if a menu item with the same text exists in a preceding sub menu (For instance, if “View~Other Windows~File” exists before “View~Toolbars~File"). Infragistics menus are currently unsupported and we rely on TextClick, which will click on the wrong item if a preceding menu item is a sub string of the specified menu item for example.