ChristopherTM
14 years agoOccasional Contributor
Xceed Grid problems
Hi everyone, really hope you can help me out with this one.
The test :
I'm currently testing an application that receives data from an extern unit. The data is then displayed in the application, and the table handler is XceedGrid (that's what I think, I'm only testing not developing). The test I want to create is retrieving some data, then delete some and then receive some more. The problem is that I would like to delete a specific row independent of what data it contains, and I don't know how to do this.
To delete a row I need to highlight it, therefor the click action.
Solutions I have been working with:
I have tried to use different properties but I think that will make the test less versitile. Then I stumbled across the .ClickCell method and have been working with that but still no luck.
In the object browser I have added "Xceed.Wpf.DataGrid.DataGridControl", and I have installed all the extensions.
Then when I use the ClickCell(x, y, 0) I get :
Possible reasons:
1. The application stopped responding.
2. The application was compiled incorrectly (see the Open Applications topic in the help system).
3. An error occurred in TestComplete.
Technical information:
97 0x80020006 (Unknown name.) ScrollIntoView.
Tested object:
Aliases.TrackMan_Gui_Shell.HwndSource_window.window.Grid.Grid1.TabControl.AnalyzeView.Grid.AnalyzeDockingManager.MainHost.DockedElementsContainer.DockedElementsContainer.DockedElementTabbedHost.Statistics.Grid.grid
(Sys.Process("TrackMan.Gui.Shell").WPFObject("HwndSource: window").WPFObject("window").WPFObject("Grid", "", 1).WPFObject("Grid", "", 1).WPFObject("TabControl", "", 1).WPFObject("AnalyzeView", "", 1).WPFObject("Grid", "", 1).WPFObject("AnalyzeDockingManager").WPFObject("MainHost", "", 1).WPFObject("DockedElementsContainer", "", 1).WPFObject("DockedElementsContainer", "", 1).WPFObject("DockedElementTabbedHost", "", 2).WPFObject("Statistics").WPFObject("Grid", "", 1).WPFObject("grid"))
If I choose a non existing row or column i get :
Total number of items: 7.
So it actually knows what it contains, but why isn't it then possible to perform a clicking action ?
Please help, what can I do? I have tried selecting different rows but still no luck and have looked in the forums but that haven't been able to bring me further in the process. I'm currently writting my tests i JScript.
Hope that I have provided the information necessary