
## matches {#str}

Determines whether the element matches the specified CSS selector.


### Returns 


`true` if the element matches the selector; otherwise, `false`.


```python
def matches(self, selector):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| selector | str | The selector. |



### See Also
* module [`aspose.html`](../../)
* class [`HTMLDirectoryElement`](/html/python-net/aspose.html/htmldirectoryelement)
