* @throws WidgetNotFoundException if the widget is not found.
*/
public SWTBotMenu contextMenu(String text) throws WidgetNotFoundException {
if (widget instanceof Control) {
Control control = (Control) widget;
return new SWTBotMenu(new Finder(finder, new ContextMenuFinder(control)), text);
}
throw new WidgetNotFoundException("Could not find menu: " + text);
}