code: public boolean searchWithTimeoutFor(Class<? extends TextView> viewClass, String regex, int expectedMinimumNumberOfMatches, boolean scroll, boolean onlyVisible) {
  		final long endTime = SystemClock.uptimeMillis() + TIMEOUT;
  
  		TextView foundAnyMatchingView = null;
  
  		while (SystemClock.uptimeMillis() < endTime) {
  			sleeper.sleep();
  			foundAnyMatchingView = searchFor(viewClass, regex, expectedMinimumNumberOfMatches, 0, scroll, onlyVisible);
  			if (foundAnyMatchingView !=null){
  				return true;
  			}
  		}
  		return false;
  	}
docs: Searches for a {@code View} with the given regex string and returns {@code true} if the
  searched {@code Button} is found a given number of times. Will automatically scroll when needed.
  
  @param viewClass what kind of {@code View} to search for, e.g. {@code Button.class} or {@code TextView.class}
  @param regex the text to search for. The parameter <strong>will</strong> be interpreted as a regular expression.
  @param expectedMinimumNumberOfMatches the minimum number of matches expected to be found. {@code 0} matches means that one or more
  matches are expected to be found
  @param scroll whether scrolling should be performed
  @param onlyVisible {@code true} if only texts visible on the screen should be searched
  
  @return {@code true} if a {@code View} of the specified class with the given text is found a given number of
  times, and {@code false} if it is not found