I keep facing these two errors when running my bot:
- “Top level selector used outside scoped containers in activities”
- “Selector from activity contains large IDX number. Threshold is 2”
I keep facing these two errors when running my bot:
Only use top-level selectors inside containers like Use Application/Browser.
what does it mean by top level selectors?
It means you have to first open the app or browser using activity like Use Application/Browser. then, inside that, you can use smaller actions like Click or Type Into. If you skip the container and use full selectors directly, this error shows up. &
Avoid using selectors with idx=3 or higher. Use better attributes or anchors instead.
Happy Automation
If you get the time, the UiPath Academy is actually a great place to find more info on selectors, descriptors and best practices.
I would suggest the two courses below as a good introduction - hope you find it interesting
Best Regards
Soren