Page 1 of 1

Silverlight data grid validation

Posted: Tue Dec 06, 2016 11:26 pm
by Eric_C2016
Hi everyone,

I'm using Ranorex version 6.1.1 with a Silverlight application. I'm unable to validate a column of data within a data grid. Specifically, I would like to determine whether or not my search results only contains a specific string of text in each row of the column.

Ranorex is able to identify the element 'RowsPresenter' and sub elements for each search record, but how can I check an entire column for the text string without identifying each record?

Here's the path looks like for one search record: /dom[@caption='Microsoft Silverlight']//object[#'_sl']/form[@name='Silverlight Control']/?/?/container[@automationid='ContentFrame']/table[@automationid='AnalysisDataGrid']/element/element[1]/?/?/text[@name='Work In Progress']

Operating System: Windows 7

Thanks, in advance, for any insight.

Re: Silverlight data grid validation

Posted: Wed Dec 07, 2016 8:18 am
by odklizec
Hi,

Please post a Ranorex snapshot (not screenshot) of the table in question. Without at least snapshot, there is not much anyone here can do for you.

Anyway, there is most probably no way to validate entire column (at once) without iterating trough its individual cells. In other words, you will most probably have to write a piece of code, which will obtain a list of cells, belonging to given column, and then validate this list against the reference list (stored in data connector of your choice). Please post a Ranorex snapshot and I or anyone else here can suggest more details.