get_elements_by_class_name method

get_elements_by_class_name

Returns HTMLCollection object containing all the elements within Element that have all the classes specified in argument.

Returns

A live HTMLCollection of found elements.

def get_elements_by_class_name(self, class_names):
    ...
ParameterTypeDescription
class_namesstrThe string that contains an unordered set of unique space-separated tokens representing classes (class names)

Remarks

Refer to official spec.

See Also