Micro Focus QTP (UFT) Forums
UFT - Check a checkbox inside a table cell - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: UFT - Check a checkbox inside a table cell (/Thread-UFT-Check-a-checkbox-inside-a-table-cell)



UFT - Check a checkbox inside a table cell - sara- - 02-02-2015

Hi,
I'm using UFT 12.01 to test a .NET application.
I need to instruct UFT to check a checkbox that is inside a table cell. Can you please help me?

I tried many things..
I tried to record the action, but UFT didn't recognize the check box in the cell. The recorded action was:

Code:
swfwindow().swftable().SetCellData(row,column)

I also tried with the description object:

Code:
Set oDesc = Description.Create
oDesc("Class Name").Value = "SwfCheckBox"
Set oObjs = SwfWindow().SwfTable().ChildObjects(oDesc)

For i = 0 to oObjs.Count - 1                
   x = oObjs(i).GetROProperty("swfname")
  print x
Next

but there aren't child objects.
I tried to "Navigate and Learn", but no check box object was acquired. Same with ObjectSpy.

So, I'm stuck.. Sad

Thanks
Sara