---
title: "query_selector method"
url: "https://reference.aspose.com/svg/python-net/aspose.svg/svggeometryelement/query_selector/"
product: "Aspose.SVG for Python via .NET API References"
---


## query_selector {#str}

Returns the first Element in document, which match selector


### Returns 


The matched element


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

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



### See Also
* module [`aspose.svg`](../../)
* class [`Element`](/svg/python-net/aspose.svg.dom/element)
* class [`SVGGeometryElement`](/svg/python-net/aspose.svg/svggeometryelement)
