Objects taken off Object Hiearchy when scrolling

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Brent Arata
Posts: 12
Joined: Mon Jan 27, 2014 10:33 pm

Objects taken off Object Hiearchy when scrolling

Post by Brent Arata » Thu Oct 30, 2014 8:19 pm

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.

Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Objects taken off Object Hiearchy when scrolling

Post by krstcs » Thu Oct 30, 2014 8:30 pm

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.
Shortcuts usually aren't...