public void waitUntil(Predicate<OutputFrame> predicate,long limit,TimeUnit limitUnit) throws TimeoutException {
  long expiry=limitUnit.toMillis(limit) + System.currentTimeMillis();
  waitUntil(predicate,expiry);
}

public void waitUntil ( Predicate < OutputFrame > predicate , long limit , TimeUnit limitUnit ) throws TimeoutException { long expiry = limitUnit . toMillis ( limit ) + System . currentTimeMillis ( ) ; waitUntil ( predicate , expiry ) ; }
wait until any frame ( usually , line ) of output matches the provided predicate . < p > note that lines will often have a trailing newline character , and this is not stripped off before the predicate is tested .
