Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
General Run error
#8
Solved: 11 Years, 3 Months, 3 Weeks ago
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
Reply


Messages In This Thread
General Run error - by Prema - 10-12-2010, 01:03 PM
RE: General Run error - by KavitaPriyaCR - 10-12-2010, 01:16 PM
RE: General Run error - by Prema - 10-12-2010, 01:44 PM
RE: General Run error - by KavitaPriyaCR - 10-12-2010, 01:55 PM
RE: General Run error - by Prema - 10-12-2010, 02:14 PM
RE: General Run error - by KavitaPriyaCR - 10-12-2010, 03:17 PM
RE: General Run error - by Prema - 10-12-2010, 04:08 PM
RE: General Run error - by KavitaPriyaCR - 10-12-2010, 04:35 PM
RE: General Run error - by Prema - 10-12-2010, 04:39 PM
RE: General Run error - by KavitaPriyaCR - 10-12-2010, 04:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  General run error when Exist fails msacks 1 1,851 02-08-2019, 02:12 AM
Last Post: Ankur
  General Object Error(Find Object Error) akhandesh 1 3,595 02-24-2016, 01:05 PM
Last Post: sindhus
Rolleyes The test run cannot continue due to an unrecoverable error neerndg123 3 8,653 09-17-2015, 08:27 PM
Last Post: ananthakumarbe
  HI, i'm having a run time error ,please help? Awzar 0 2,632 01-24-2015, 06:52 AM
Last Post: Awzar
  Browser("BrowserName").Back gives General Run Error... deminiek 13 18,625 12-10-2013, 12:53 AM
Last Post: rizvia

Forum Jump:


Users browsing this thread: 1 Guest(s)