Forum Discussion
Hi Know . Is this the same application you were having issues with when trying to select items from the combo box? If yes, then it's a WPF application (It's important to mention the technology your application uses). What does the Object Browser show for your control?
I've created a WPF application which has a similar control to yours. Looking at the Object Browser, TestComplete exposes the WPFObject("DataGrid", "", 1) object and all the child objects beneath it. If I look at the Extended properties of WPFObject("DataGrid", "", 1) object, I can retrieve the necessary value from a particular row & column using wValue property, as shown below
Object Browser - Using wValue to retrieve value "Load" from row 3 and column "Function"If your grid control is not exposing similar objects, try to enable MSAA, in Project -> Properties -> Open Application -> MSAA.
- Know5 days agoOccasional Contributor
rraghvani it has same application, but on the different dialog
Because as I mentioed, datagrid is not expose any cell, So I cannot use wValue to retrieve any value
- torus5 days agoFrequent Contributor
So something like this wouldn't work? (Note: all the code examples i list here are in Javascript).
var list = Aliases.Icad.dlgAECStylesManager.Item.SysListView32; var rowCount = list.wItemCount; for (var r = 0; r < rowCount; r++) { for (var c = 0; c < 6; c++) { Log.Message("Row " + r + ", Col " + c + ": " + list.wSubItem(r, c)); } }- Know5 days agoOccasional Contributor
cannot work because the datagrid object don't have propeties: wSubItem