
## get_elements_by_class_name {#str}

Returns [`HTMLCollection`](/html/python-net/aspose.html.collections/htmlcollection) object containing all the elements within [`Element`](/html/python-net/aspose.html.dom/element) that have all the classes specified in argument.


### Returns 


A live [`HTMLCollection`](/html/python-net/aspose.html.collections/htmlcollection) of found elements.


```python
def get_elements_by_class_name(self, class_names):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| class_names | str | The string that contains an unordered set of unique space-separated tokens representing classes (class names) |
### Remarks

Refer to official [spec](https://dom.spec.whatwg.org/#dom-element-getelementsbyclassname).


### See Also
* module [`aspose.html`](../../)
* class [`Element`](/html/python-net/aspose.html.dom/element)
* class [`HTMLCollection`](/html/python-net/aspose.html.collections/htmlcollection)
* class [`HTMLElement`](/html/python-net/aspose.html/htmlelement)
