getOutput().printLine("Wait \"" + text + "\" text starting from " +
Integer.toString(position) + " position in component \n : "+
toStringSource());
getOutput().printGolden("Wait \"" + text + "\" text starting from " +
Integer.toString(position) + " position");
waitState(new ComponentChooser() {
public boolean checkComponent(Component comp) {
String alltext = getDisplayedText();
if(position >= 0) {
if(position + text.length() <= alltext.length()) {
return(alltext.substring(position, position + text.length()).