Skip to main content

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.

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

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]);
});

my.pageScrollTo

Scroll page to position