Element.has_attr# Element.has_attr(name)[source]# Checks if the HTML element has the specified attribute. Parameters: name (str) – The name of the attribute. Return type: bool