Hi,
We are using TestAdvantage window forms 2007 vol2.0 clr2.0 with QTP 9.1.
I am not able to select checkbox which is embed in swfTable(grid) UltraWinGrid control.
Same problem i am getting with Horizontal Scroll bar which is embe in swfTable(grid) UltraWinGrid control and generated at runtime.
below is the code which i have used :-
SwfWindow("Personify: NSSWP").SwfWindow("Meeting Attendance").SwfTable("Grid").ActivateCell "0","mCheckBox"
abc = SwfWindow("Personify: NSSWP").SwfWindow("Meeting Attendance").SwfTable("Grid").GetNAProperty("ActiveCell.Column.CellActivation")
and gettig this error:-
Unable to find assembly 'Infragistics2.Win.UltraWinGrid.v7.2, Version=7.2.20072.61, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb'.
Line (155): "abc = SwfWindow("Personify: NSSWP").SwfWindow("Meeting Attendance").SwfTable("Grid").GetNAProperty("ActiveCell.Column.CellActivation")".
Please suggest me the solution if there is any?
Thanks...
Try
SwfWindow("Personify: NSSWP").SwfWindow("Meeting Attendance").SwfTable("Grid").SetCellData"0","mCheckBox", True
thx buddy it did worked.....
Hi, I tried SetCellData method but its throwing "unable to convert from system string to system decimal" error for me. Can you please suggest what could be the problem.
Thanks,
Srinivas
Hello srinirk99,
Would you mind sending a sample script and a sample application so that I can test this internally? Which version of our products and QTP are you using?
Hi Srinivas, The error doesn't seem to make sense with the line of code that you are showing. I am going to assume that the checkbox column in the picture is the "SELECT" column, and the data type for that column is boolean as you are sending a value of True. Which is neither a string or a decimal.
My thoughts would be one the error is actually internal to your application, and the reason it may not be reproducible via the UI is the events may be triggered differently when using SetCellData then manually doing it via the UI. This sometimes happens if a developer listens to a mouse based event instead of or inconjunction with the CellChanged and\or one of the Update events. This is because we update the cell's data directly and which triggers the changed and updates event and not the individual mouse events. The other idea is that the error may be for another line of code. Either way can you include the image for the error message, sometimes there is additional information in the error message that we can interpret the root cause.
One final code was the line of script above hand scripted or recorded?
I am working with UFT11.5 and Test Advantage 2009V2.
The code I tried was - SwfWindow("ONESOURCE TAX PROVISION").SwfTable("ugSourceEvents").SetCellData "0", "SELECT", True