05-22-2013, 03:00 AM
I need to perform a search criteria and it will bring list of deals, I need to select first checkbox and perform an action
This is the code I wrote
It gave correct number of checkbox, now I need to select the first checkbox, can you please tell me how to select the first checkbox?
I tried this code but it did not work
This is the code I wrote
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 Obj= Browser("Revenue Editor").Page("Revenue Editor").Childobjects(Obj)
'Set Obj= Browser("Revenue Editor").Childobjects(Obj)
AllObj=Obj.count
msgbox AllObj
It gave correct number of checkbox, now I need to select the first checkbox, can you please tell me how to select the first checkbox?
I tried this code but it did not work
Code:
For i = 1 to 2
Obj(i).set "ON"
Next