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