* @return a wrapper around a Text widget matching the specified criteria.
* @throws WidgetNotFoundException if the widget is not found.
* @since 1.0
*/
public SWTBotText text(String text, int index) throws WidgetNotFoundException {
List findControls = finder.findControls(new DecoratingAndMatcher(new ClassMatcher(Text.class), new TextMatcher(text)));
if (findControls.isEmpty())
throw new WidgetNotFoundException("Could not find any text widget");
return new SWTBotText((Text) findControls.get(index));
}