Page 1 of 1

Objects taken off Object Hiearchy when scrolling

Posted: Thu Oct 30, 2014 8:19 pm
by Brent Arata
Hi, I was wondering if there was a setting in Ranorex that disables this feature. I am not sure if this is due to our developers occlusion culling are UI view components on screen or if this a feature in Ranorex. I will repost here if they are doing this intentionally for performance reasons. I am automating a windows 8 wpf application, with the "Force virtual items to be realized" set to false. Thanks.

Re: Objects taken off Object Hiearchy when scrolling

Posted: Thu Oct 30, 2014 8:30 pm
by krstcs
This is a "feature" of the Windows WPF framework and how it presents things on the screen. There is probably nothing your devs or the Ranorex team can do about it. I had the same problem with a previous project.

The issue is that Microsoft decided to use what is called "Lazy-loading" of objects on screen, in order to save memory. So, if you have a table, for example, with 50 rows, and only 20 will fit on screen, then the other 30 rows are not actually realized by the software. There is a pointer to them, but not the actual object. The pointer lets the software keep track of what should be displayed and how big the list is, for example, but it isn't the actual row of data.

This is good from the standpoint of system resource utilization, but bad for automation.

You will need to figure out a way to scroll the desired elements back on screen in order to be able to interact with them with Ranorex.