DevExpress WPF Grid Controls
Posted: Thu Mar 13, 2014 10:43 am
Hi,
We are facing the below issue while automating our Application using Ranorex,
Application developed with WPF Controls,
Third party WPF Controls used: DevExpress WPF Controls
1. Developers use ‘DevExpress.Xpf.Grid.GridControl’ to populate search result in the application, we are not able to get any individual object in the grid
Ex. This grid has different columns, we are not able to get the value of any individual column.
2. There are checkboxes inside ‘DevExpress.Xpf.Grid.GridControl’ which has the below hierarchy
<dxg:GridColumn.CellTemplate> <DataTemplate> < CheckBox /> </DataTemplate> </dxg:GridColumn.CellTemplate>
These check boxes are not identified.
3. Inside this grid there is an expansion grid developed with ‘DevExpress.Xpf.Grid.GridControl.DetailDescriptor’ which we are not able to identify using Ranorex.
4. Inside this Detain Descriptor we have <dxg:ContentDetailDescriptor> And then it has <dxg:ContentDetailDescriptor.ContentTemplate> and it has <DataTemplate> which contains another DevExpress.Xpf.Grid.GridControl, This internal Grid itself is not getting identified by Ranorex.
We tried to parse these unknown elements to checkboxes, but we did not get it to work, we got an error ‘Object reference not set to instance of an object’
We tried to assign a role to these unknown elements as ‘Checkboxes’, then the objects were not even getting identified.
- Can you please help us one how to overcome the issue with ‘unknown’ element.
We are facing the below issue while automating our Application using Ranorex,
Application developed with WPF Controls,
Third party WPF Controls used: DevExpress WPF Controls
1. Developers use ‘DevExpress.Xpf.Grid.GridControl’ to populate search result in the application, we are not able to get any individual object in the grid
Ex. This grid has different columns, we are not able to get the value of any individual column.
2. There are checkboxes inside ‘DevExpress.Xpf.Grid.GridControl’ which has the below hierarchy
<dxg:GridColumn.CellTemplate> <DataTemplate> < CheckBox /> </DataTemplate> </dxg:GridColumn.CellTemplate>
These check boxes are not identified.
3. Inside this grid there is an expansion grid developed with ‘DevExpress.Xpf.Grid.GridControl.DetailDescriptor’ which we are not able to identify using Ranorex.
4. Inside this Detain Descriptor we have <dxg:ContentDetailDescriptor> And then it has <dxg:ContentDetailDescriptor.ContentTemplate> and it has <DataTemplate> which contains another DevExpress.Xpf.Grid.GridControl, This internal Grid itself is not getting identified by Ranorex.
We tried to parse these unknown elements to checkboxes, but we did not get it to work, we got an error ‘Object reference not set to instance of an object’
We tried to assign a role to these unknown elements as ‘Checkboxes’, then the objects were not even getting identified.
- Can you please help us one how to overcome the issue with ‘unknown’ element.