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
180
UltraWinGrid - selecting a check box in a column
posted

Hi,

I am facing a problem in trying to select a checkbox in an ultraWinGrid control (screenshot attached)

The checkbox lies within one of the cells and I am not able to set the checkbox to an On state.

Is there a native method/property which can be used to set the checkbox to a "checked" state?

SwfWindow("xxx").SwfWindow("yyy").SwfTable("zzz").Object.SomeMethod

I'm using QTP 10, Test Advantage 2005 Volume 3 CLR 1.0. Application is coded in c#.

Any help would be appreciated.

Regards,

Chandan

Parents
  • 7695
    Offline posted

    Hi Chandan,

        I am assuming that you have NetAdvantage 2005 Volume 3 CLR 1.0 in your application to match your TestAdvantage 2005 Volume 3 CLR 1.0.  That being said, it should record and replay:

    SetCellData sRowPath, sColumn, sValue

    SwfWindow("xxx").SwfWindow("yyy").SwfTable("zzz").SetCellData "4","checkbox","True"

    Note that due to the timing of events particular to Checkboxes in the grid, it will only record after you leave the focus of the cell. IE move to another cell, or control.

    If for some reason it doesn't record, you can still try to maunally script it, again using the syntax shown above. Let me know if this works for you.

     

     

     

Reply Children