02-04-2010, 02:36 PM
Hi,
Refer the below sample code & map it to your requirements.
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"