Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
for Check box solution
#1
Hi all,

In my page there are several check boxes, so i'm running my test for 13 iterations. now, is there any possibility in checking(Randomly) the check boxes automatically.
If kindly, as soon as possible.
Thanking you,
Samson.B
Reply
#2
Hi,

Refer the below sample code & map it to your requirements.

Code:
Set chk_obj=Description.Create chk_obj("micclass").Value="WebCheckBox" Set x= Browser("xxxx").page("xxx").ChildObjects(chk_obj) chk_count= x.count-1 Browser("xxx").page("xxx").WebCheckbox("ClassName:=WebCheckBox","index:="&RandomNumber(0,chk_count)).set "ON"
Reply
#3
Thank you,
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Scrambled characters in uft Solution Explorer Dwarak Calayampundi 0 1,946 05-25-2016, 05:02 AM
Last Post: Dwarak Calayampundi
  QTP not selecting appropriate webelement from the webtable..Need Solution satishkumarm 11 23,662 03-23-2016, 12:47 PM
Last Post: Swetha_Bayya
  Check Box Object Identification rakesh499 0 2,518 01-27-2015, 01:56 PM
Last Post: rakesh499
  I need some question with solution for practice of vb script please help excellentpawan 0 2,121 07-11-2013, 10:02 PM
Last Post: excellentpawan
  Default value in Edit Box when Check Box is checked nacchio 2 5,873 07-18-2012, 12:21 PM
Last Post: sree.85

Forum Jump:


Users browsing this thread: 1 Guest(s)