code: public boolean waitForText(String text, int minimumNumberOfMatches, long timeout, boolean scroll, boolean onlyVisible) {
  		if(config.commandLogging){
  			Log.d(config.commandLoggingTag, "waitForText(\""+text+"\", "+minimumNumberOfMatches+", "+timeout+", "+scroll+", "+onlyVisible+")");
  		}
  		
  		return (waiter.waitForText(text, minimumNumberOfMatches, timeout, scroll, onlyVisible, true) != null);
  	}
docs: Waits for the specified text to appear.
  
  @param text the text to wait for, specified as a regular expression
  @param minimumNumberOfMatches the minimum number of matches that are expected to be found. {@code 0} means any number of matches
  @param timeout the the amount of time in milliseconds to wait
  @param scroll {@code true} if scrolling should be performed
  @param onlyVisible {@code true} if only visible text views should be waited for
  @return {@code true} if text is displayed and {@code false} if it is not displayed before the timeout