Search all cells from specific column in table

Class library usage, coding and language questions.
i.vasilyev
Posts: 30
Joined: Fri Sep 09, 2016 10:14 am

Search all cells from specific column in table

Post by i.vasilyev » Fri Jul 07, 2017 3:02 pm

Hello
I have a problem with searching of all cells from specific column in table.
The table has more than 800 rows.
AUT: Desktop app
Ranorex 7
I'm not using the Ranorex Studio, I'm using VS + Ranorex.Core lib

Code: Select all

var rows = Host.Local.Find<Cell>("/form/table/row/cell[7]");
Result: rows.Count is 209 cells, but I'm expecting 804(all cells from specific column)
I know that this is because of some Ranorex setting, but I can't find the actual setting.

I tried to use following things, but that is not helpful for me:
- Ranorex.Plugin.UiaFlavor.Instance.UseItemContainerPattern = true;
- realize items in virtualizing containers = true(in Ranorex settings)

How can I find all cells?

Vega
Posts: 222
Joined: Tue Jan 17, 2023 7:50 pm

Re: Search all cells from specific column in table

Post by Vega » Fri Jul 07, 2017 6:45 pm

Are you able to provide a snapshot of the table? This would be extremely helpful as all you may need is an adjustment to the Ranorex path you are using. Looking at a snapshot side by side with your chosen Ranorex path would be nice.

i.vasilyev
Posts: 30
Joined: Fri Sep 09, 2016 10:14 am

Re: Search all cells from specific column in table

Post by i.vasilyev » Tue Jul 11, 2017 2:41 pm

Nope. I'm not able. It is a common question I'm not sure that it depends on specific RxPath or specific element

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

Re: Search all cells from specific column in table

Post by krstcs » Tue Jul 11, 2017 4:19 pm

Unfortunately, it often does very much depend on the implementation, so being able to see the actual Snapshot or application is the only thing that really helps. Every application is different.
Shortcuts usually aren't...

Vega
Posts: 222
Joined: Tue Jan 17, 2023 7:50 pm

Re: Search all cells from specific column in table

Post by Vega » Tue Jul 11, 2017 8:57 pm

I strongly believe you are just using a non-optimized Ranorex path based on the information provided. You should be able to return all rows /cells from a table easily with the right path. This is why a snapshot is so important;
without a snapshot its just guess work.Try taking the indexer off your Ranorex path and see what the count is.

I completely understand not being able to post it here, but you may want to open a ticket with the Ranorex support team so you may provide the snapshot to them directly.