contains_attribute method

contains_attribute

Determines whether the element contains a specific attribute.

Returns

true if attribute is exist; otherwise false.

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

See Also