Parameters
This API does not require any parameters.Return Value
Returns a SelectorQuery object.Code Example
Related APIs
my.pageScrollTo
Scroll page to position
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create a selector query to get element information.
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]);
});