This function works as a shortcut of one of the calls:
getAttrValue(element, attrName).toString()
getAttrValue(attrName).toString()
See Also:
getAttrValue(), toString()