contains_attribute method

contains_attribute

Determines whether the element contains a specific attribute.

def contains_attribute(self, attribute):
    ...
Parameter Type Description
attribute str Attribute name.

Returns: bool: True if the attribute exists; otherwise False.

See Also