> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rebellapp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# my.createSelectorQuery

> Create a selector query to get element information.

Use this API to create a query object for selecting elements and getting their properties.

## Parameters

This API does not require any parameters.

## Return Value

Returns a SelectorQuery object.

## Code Example

```javascript theme={null}
const query = my.createSelectorQuery();

query.select('#myElement').boundingClientRect();
query.selectViewport().scrollOffset();

query.exec((res) => {
  console.log('Element rect:', res[0]);
  console.log('Scroll offset:', res[1]);
});
```

## Related APIs

<CardGroup cols={2}>
  <Card title="my.pageScrollTo" icon="arrow-down" href="/jsapi/ui/scroll/my.pageScrollTo">
    Scroll page to position
  </Card>
</CardGroup>
