code: public boolean hasText(String text) throws WidgetException {
  		try {
  			Element element = new Element(getByLocator());
  			List<WebElement> childElements = element.getWebElement().findElements(By.xpath(".//*"));
  			for (WebElement we : childElements) {
  				if (we.getText().contains(text)) {
  					return true;
  				}
  			}
  
  			return false;
  		} catch (Exception e2) {
  			throw new WidgetException("Error while determining if element has text '" + text + "'", getByLocator(), e2);
  		}
  	}
docs: /*
  (non-Javadoc)
  
  @see qc.automation.framework.widget.IElement#hasText()