UiPath is identifying elements which are not visible. I want to scroll to the desired element and select it. But UiPath is not scrolling till the element and since it is giving wrong selection.
Looking at your screenshots, are you trying to scroll to something within one of those boxes? That’s entirely different than scrolling the main page/window itself.
You may need to click the first item before Set Focus (or Scroll) so that the scrolling is sent to the box itself. But that still might not work.
You might have to use a Do While, and inside it click the down scroll button then Check App State to see if the one you’re looking for is visible. The condition for your Do While would be that the element is not yet visible.
I’m curious why you’re trying to scroll. Why do you need to?
So the scenario is, I need to scroll in those boxes. I want to find element is which is not visible. I need to scroll until the element is visible in one of those two lines. the problem is the idx keeps on changing after few boxes.
As you can see sbove in the given image"10May21Template" those are template name. I need to scroll the template name which is passed in variable. I need to click the template that has been passed through variable
You don’t have to scroll to it to click it. Just use a Click activity, set to input mode Simulate (Chromium may work but you haven’t told us if it’s an app or web page), and create a dynamic selector with the variable.
I didn’t say uncheck simulate, I said USE simulate. And if you’re checking/unchecking it, it sounds like you’re working in classic. It is long past time for you to be working in modern. With simulate, it doesn’t have to - and won’t - scroll to the item. It sends the click under the hood, not by moving the mouse around.