code: @Override
  	public boolean isAttributePresent(String attributeName) throws WidgetException {
  		try {
  			WebElement webElement = null;
  			String attrValue = null;
  
  			// WebDriver get attribute
  			try {
  				webElement = findElement();
  				attrValue = webElement.getAttribute(attributeName);
  				highlight(HIGHLIGHT_MODES.GET);
  			} catch (Exception e) {
  				throw new RuntimeException("Exception happened at locator: " + locator + " attribute: " + attributeName + e.getMessage());
  			}
  
  			if (attrValue != null) {
  				return true;
  			}
  
  			return false;
  		} catch (Exception e) {
  			throw new WidgetException("Error while determining if attribute is present: " + attributeName, locator, e);
  		}
  	}
docs: /*
  (non-Javadoc)
  
  @see
  qc.automation.framework.widget.IElement#getAttribute(java.lang.String)