attr Method
Returns the value of the specified attribute.
Syntax
def attr(attr_name: str) -> str: ...
Remarks
If the attribute does not exist, an empty string is returned if ErrorOnEmptyAttr is set to false, otherwise an exception is thrown.
Please refer to the x_attributes properties for more information.