04-20-2012, 07:35 AM
Hi,
Coudl someone please tell me why does this happen. I am trying to read links in a page and then saelect the links. But the script gives me error. Here is the code. It prints and clicks on some links but then gives error at this line: If Instr(SubGroupTag(a).GetROProperty("name"), "80269")Then
Thanks,
Sqadri
Coudl someone please tell me why does this happen. I am trying to read links in a page and then saelect the links. But the script gives me error. Here is the code. It prints and clicks on some links but then gives error at this line: If Instr(SubGroupTag(a).GetROProperty("name"), "80269")Then
Code:
Set ObjSubgroup = Description.Create
ObjSubgroup("micclass").Value = "Link"
Set SubGroupTag = GroupInfo.ChildObjects(ObjSubgroup)
sCount = SubGroupTag.Count
Print sCount
For a=36 To sCount-1
'Print SubGroupLink(a).GetROProperty("name")
wait(5)
If Instr(SubGroupTag(a).GetROProperty("name"), "80269")Then
Print "====" + SubGroupTag(a).GetROProperty("name")
If Len( SubGroupTag(a).GetROProperty("name")) = 11Then
SubGroupTag(a).Click
End If
wait(5)
End If
Next
Thanks,
Sqadri