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

You can also proceed with the below way too...

Example:
Code:
Expected_User="Donald"
RC=Browser("...").Page("...").WebTable("ActiveUsers").Rowcount
for i=1 to RC
  Current_user=Browser("...").Page("...").WebTable("ActiveUsers").GetCellData(i,2)
     if (Expected_User=Current_user) then
         Set obj=Browser("...").Page("...").WebTable("ActiveUsers").childItem(i,2,"WebCheckBox",0)
         obj.Set "ON"
         Exit For
     End if
Next


You can parameterize user name field(i.e Expected_User=Datatable("UserName",dtGlobalSheet))
and one by one you can select the checkboxes accordingly.
Reply


Messages In This Thread
RE: Selecting Checkbox one after other - by sreekanth chilam - 08-21-2009, 06:37 PM

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: 2 Guest(s)