Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to select multiple and/or all check boxes?
#4
Solved: 10 Years, 10 Months, 1 Week ago
Assuming you have four check boxes...if you were to select check box#3 and checkbox#4 you will use .
Code:
Set myObj=Description.Create
myObj("micclass").value="WebCheckBox"
Set allObjs=Browser("...").Page("....").ChildObjects(myObj)
allObjs(2).Set "ON"
allObjs(3).Set "ON"
This approach doesn't take into consideration, the check box properties. It gets all checkbox items and selects all if used in for loop. To select a particular check box, pass its index where the first occurence of a check box is given index '0'.
Reply


Messages In This Thread
RE: How to select multiple and/or all check boxes? - by ravi.gajul - 04-09-2013, 12:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT 11.52 - How to select multiple rows in webtable UFT_Tester 0 6,083 09-12-2013, 09:36 PM
Last Post: UFT_Tester
  Dialog Boxes mv8167 5 4,576 07-11-2011, 08:48 PM
Last Post: mv8167
Smile to select a single check box at runtime. karthikhw 1 2,727 03-25-2010, 02:00 PM
Last Post: manishbhalshankar
  How to select multiple items from a combobox/listbox prasadworld321 4 12,824 08-26-2009, 02:07 PM
Last Post: prasadworld321
  How to select the check box from the table (only scripts, no recording) Maheswaran 2 3,176 07-28-2009, 05:36 PM
Last Post: QTPian

Forum Jump:


Users browsing this thread: 1 Guest(s)