10-12-2010, 04:35 PM
(This post was last modified: 10-12-2010, 04:37 PM by KavitaPriyaCR.)
Hi Prema here is the solution, the reason is "Object is losing its property after first click", i donno the exact cause, let us find it out later. Meanwhile try this script, this will work.
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
Set List =Browser("name:=Browser").Page("title:=Browser").ChildObjects(desc)
Next