public SWTBotViewMenu menu(String label, int index) throws WidgetNotFoundException {
List l = getViewMenuFinder().findMenus((IViewReference) view, new MnemonicTextMatcher(label), true);
if ((l == null) || (l.size() < 1)) {
CommandFinder finder = new CommandFinder();
l = finder.findCommand(new StringMatcher(label));
}
if ((l == null) || (l.size() < 1))
throw new WidgetNotFoundException("Unable to find the menu item " + label + " in this view");