Gathering Data from a Silverlight Grid

Ask general questions here.
djTXST
Posts: 1
Joined: Thu May 15, 2014 9:13 pm

Gathering Data from a Silverlight Grid

Post by djTXST » Thu May 15, 2014 9:19 pm

I'm a Ranorex noob testing out Ranorex to see if it fits our needs and I'm trying to gather all data from a Silverlight Table for verification. I need some help with the user code to do such a thing. I've attached a snapshot of the table I am trying to gather from. Any help would be appreciated.
Attachments
ranX.rxsnp
(143.75 KiB) Downloaded 77 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Gathering Data from a Silverlight Grid

Post by Support Team » Mon May 19, 2014 1:58 pm

Hi djTXST,

Thank you for the attached snapshot.
Unfortunately it seems that your development department has forgotten to implement the UIAutomation for the custom controls which are stored in the DataGrid. So it is not possible to get the information out of the elements.

I’ve made a little sample. When you compare the 2 following screenshots you can see that my DataGrid contains “Text Elements” and your DataGrid contains “Unknown Elements”.
Spy.jpg
Spy.jpg (47.15 KiB) Viewed 661 times
Spycstm.jpg
Spycstm.jpg (69.66 KiB) Viewed 661 times
My datagrid looks like the following:
Grid.jpg
Grid.jpg (23.71 KiB) Viewed 661 times
After the UIAutomation has been implemented correctly, you can use the Find()-Method to extract your information.

More information about the Find()-Method can be found in our User Guide by following this link
This method is also described in our API-documentation

Regards,
Markus (S)
.
Image