05-22-2013, 07:12 AM
Is your criteria only to select the first one? If yes then you dont have to iterate.
You could simply add the object to the repository and then SET it to ON. But if you want to highlight a 5th or 7th or loop through then you can use the below code. The below code will check all the checkboxes it has identified.
Does it help?
You could simply add the object to the repository and then SET it to ON. But if you want to highlight a 5th or 7th or loop through then you can use the below code. The below code will check all the checkboxes it has identified.
Code:
Set Obj=Description.Create()
Obj("html tag").value="DIV"
Obj("outerhtml").value="<DIV class=x-grid3-check-col></DIV>"
obj("micclass").value="WebElement"
Set ObjChild= Browser("Revenue Editor").Page("Revenue Editor").Childobjects(Obj)
AllObj=ObjChild.count
msgbox AllObj
For i = 1 to AllObj
ObjChild(i).set "ON"
Next
Does it help?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.