Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
330
Can we get a cell's absolute coordinates to the parent GUI or desktop?
posted

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

Parents
  • 22852
    Suggested Answer
    Offline posted

    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

Reply Children
No Data