AUT Spy only detects visible columns of given datagrid

Ranorex Spy, Recorder, and Studio.
sdz
Posts: 1
Joined: Mon May 03, 2021 3:59 pm

AUT Spy only detects visible columns of given datagrid

Post by sdz » Mon May 03, 2021 4:08 pm

Hi,

I would like to validate in my given AUT that a certain set of columns is present in a datagrid.
The problem is that in Rx Spy it only shows the /cell[] elements that are currently visible on the UI. Many other cells are hidden and only are shown in SPY when I scroll to them with the horizontal scroll bar.

What would be the best approach in Rx recorder to validate 30 column items?
Bildschirmfoto 2021-05-03 um 17.06.09.png
Bildschirmfoto 2021-05-03 um 17.06.09.png (57.4 KiB) Viewed 853 times
AUT is a Windows Forms application.

Regards

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6544
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: AUT Spy only detects visible columns of given datagrid

Post by odklizec » Wed May 05, 2021 8:38 am

Hi,

I'm afraid, it's not a problem of Spy, but it's a "feature" of given datagrid. It's so called lazy-loading, which saves memory ;) So the only way how to validate such data grid, is to load all items by actually scrolling the datagrid and loading all individual items to a separate list. In other words, you must write a code to do this. You can find an example code (which must be adapted to your datagrid) here:
how-to-get-all-rows-from-a-table-which- ... tml#p57759
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration