QTP v10 and TestAdvantage 2007 volume 1 CLR 2.0
I have a column in a grid (the grid has parent and child band rows) that contains a checkbox. I need to check that box. I tried using SetCellData, but it locks my application under test and QTP. I have another post on this forum for that and an open ticket with HP and will be opening a ticket with Infragistics.
Until then I am looking for a work around.
If I could get the cell's absolute coordinates, I could move the mouse into the dead center of the cell then just do a mouse click with vbscript.
How can I get these coordinates in vbscript using QTP and the API/Method calls available to QTP?
Thanks
Hello,
A better workaround is to use the ClickCellButton method instead of SetCellData for checking/unchecking the check box.
This would look like the following:
SwfWindow("WinEditors Within WinGrid").SwfTable("ultraGrid1").ClickCellButton "1","AutoOrder"
Rather than:
SwfWindow("WinEditors Within WinGrid").SwfTable("ultraGrid1").SetCellData "1","AutoOrder","True"Let me know if you have any questions with this matter.
Alan
I have another grid in my application that apparently ClickCellButton is not registered or works with the cell.
Anyone have a code snippet that shows how to get the absolute coordinates of a grid cell?