Silverlight data grid validation

Best practices, code snippets for common functionality, examples, and guidelines.
Posts: 1
Joined: Tue Dec 06, 2016 11:08 pm

Silverlight data grid validation

Post by Eric_C2016 » Tue Dec 06, 2016 11:26 pm

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.

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

Re: Silverlight data grid validation

Post by odklizec » Wed Dec 07, 2016 8:18 am


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.
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