# get_element_bounds()

Get the bounding box of an element matched by a CSS selector.

Usage

[Source](https://github.com/posit-dev/nokap/blob/main/nokap/_session.py#L163-L205)

``` python
get_element_bounds(selector)
```

## Parameters

`selector: str`  
CSS selector to match.

## Returns

`ClipRect`  
The bounding rectangle of the element.

## Raises

`ValueError`  
If the selector matches no elements.
