Page 1 of 1

How to find devexpress grid and it's rows, columns using C#

Posted: Thu Mar 24, 2016 7:03 am
by sukumar
Currently We're are using Ranorex tool by adding references of the same into 0ur VisualStudio 2013 for WPF application Test automation.

Query:
How can I find devexpress grid and it's rows and columns in Visual studio 2013 using C#.net code after taking references of latest ranorex version.
Also additionally if there is combo box or multiselect combo box column in devexpress grid how can I identify that grid and retrieve the values from that multiselect combo box column upon user selection.
Kindly clarify the same in Visual studio 2013 using C#.net code with ranorex references.

Re: How to find devexpress grid and it's rows, columns using C#

Posted: Thu Mar 24, 2016 8:00 am
by odklizec
Hi,

At first, please post a Ranorex snapshot of the problematic elements. Without snapshot, it's nearly impossible to suggest something reliable.

At second, are you able to identify the problematic elements with Ranorex Spy? I mean, is it possible to track the elements and read their values with Spy? If not, then you have a problem.

Some devexpress controls are unfortunately not developed with proper accessibility support. Either this, or the developer using devexpress control does not implement it correctly. In both cases, it may be impossible for Ranorex to track some elements and read their values. There is a great number of forum posts, discussing problems with devexpress controls. Please check them here:
http://www.ranorex.com/search.html?q=devexpress

In these cases, the only (not 100% reliable) solution is using something called GDI Capture List (described >here<). Unfortunately, this solution is not suitable for complex controls (like grids/tables). The more complex the control is, the more custom code you will have to write. Sometimes is better to give up and use image validation instead ;)

And finally, please do not post your questions multiple times. This habit will not help you to get the answer faster and only causes a mess. Thank you for understanding! ;)