Forum Discussion
3 Replies
Hi Athar,
You should be able to test the control via its native properties and methods. For example, you can analyze the "...WPFObject("grid").ItemsSource" property in TestComplete's Object Browser. To make sure that you see all properties/methods of the object, switch to the Advanced View mode and make TestComplete show hidden properties (Tools | Options | Engines | General | Display members | Show hidden members).
- asaeedNew ContributorThanks for the workaround. We followed your steps to display hidden members. It solved part of the problem but not all.
We are now able to read column headers which we were not able to before.
But still unable to read the data from grid or click inside it. See the screenshot # 1 below for more information
Also please look at the second screenshot # 2, when we use object spy to hover over the grid, it reads it as one big object as compared its individual components e.g. rows or columns
Hi Athar,
TestComplete cannot highlight individual cells in the grid as, in most cases, child objects of grid controls are internal. Thus, TestComplete does not recognize them as individual objects and does not show them in the Object Browser. To access these objects, you need to use native methods/properties of their parent objects. Do you see the ItemsSource property of the grid object in the Object Browser?