10-12-2010, 01:03 PM
Hi,
This is my code :
The script is executing for the first iteration ie when i=0 and on the second iteration i am getting a General run error in the line List(i).click.
I am new to descriptive programming.
Can any body help me ?
This is my code :
Code:
Browser("name:=Browser").Page("title:=Browser").Link("name:=Link Name").Click
Set desc = Description.Create()
desc("alt").Value = "Edit"
desc("html tag").Value = "IMG"
desc("image type").Value = "Image Link"
desc("name").Value = "Image"
desc("file name").Value = "edit.gif"
Set List =Browser("name:=Browser").Page("title:=Browser").ChildObjects(desc)
NoOfChildObjs = List.Count()
msgbox NoOfChildObjs
For i = 0 to NoOfChildObjs - 1
List(i).Click
Next
The script is executing for the first iteration ie when i=0 and on the second iteration i am getting a General run error in the line List(i).click.
I am new to descriptive programming.
Can any body help me ?