code: @Override
  	public boolean isElementPresent(long timeout) throws WidgetException {
  		final long start = System.currentTimeMillis();
  		final long end = start + timeout;
  		while (true) {
  			if (isElementPresent()) {
  				return true;
  			}
  
  			// Putting the condition here will measure the time more accurately.
  			if (System.currentTimeMillis() >= end) {
  				return false;
  			}
  			try {
  				Thread.sleep(250);
  			} catch (InterruptedException e) {
  			}
  		}
  	}
docs: /*
  (non-Javadoc)
  
  @see
  qc.automation.framework.widget.IElement#isElementPresent(java.lang.Long)