Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selecting Checkbox one after other
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
HI Rammy,

PFA piece of code and let me know if you need any more info.

Code:
NumRows = Browser("QTP Forums - Search Results").Page("QTP Forums - Search Results").WebTable("Search Results").RowCount
blnCBFlag = False
For LCount =0 to NumRows
    If instr(Browser("QTP Forums - Search Results").Page("QTP Forums - Search Results").WebTable("Search Results").GetCellData(LCount,3),"QTP")>0   Then
        CBNum = Lcount
        blnCBFlag = TRUE
        Exit For
    End If
Next

If blnCBFlag = TRUE Then
    Set oDesc = Description.Create()
    oDesc("micclass").value = "WebCheckBox"
   Set CBCollection = Browser("QTP Forums - Search Results").Page("QTP Forums - Search Results").ChildObjects(oDesc)
    CBCollection(CBNum).set "ON"
End If
Set oDesc = Nothing
Set CBCollection = Nothing
Thanks,
SUpputuri
Reply


Messages In This Thread
RE: Selecting Checkbox one after other - by supputuri - 08-21-2009, 10:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT - Check a checkbox inside a table cell sara- 0 5,708 02-02-2015, 08:07 PM
Last Post: sara-
  Application Issue on selecting value from weblist using UFT 12.1 on run sunilkgupta 0 2,282 01-01-2015, 08:22 PM
Last Post: sunilkgupta

Forum Jump:


Users browsing this thread: 1 Guest(s)