10-12-2010, 03:17 PM
(This post was last modified: 10-12-2010, 03:19 PM by KavitaPriyaCR.)
Hi Prema,
I tried the samething in my application, good news is that i am also getting the same error only if i attempt clicking that image.that means there is problem with properties of child/BrowserPage once we click for List(0).In my app, i have images with properties i have described below. This will display the name and file name(for me file names are different in my app). But if i add the line List(0).Click... will get the same error as u are getting now, From this we can understand that there is change in
Browser().Page(). -->> Pls look into this
Here i am pasting my script:
I tried the samething in my application, good news is that i am also getting the same error only if i attempt clicking that image.that means there is problem with properties of child/BrowserPage once we click for List(0).In my app, i have images with properties i have described below. This will display the name and file name(for me file names are different in my app). But if i add the line List(0).Click... will get the same error as u are getting now, From this we can understand that there is change in
Browser().Page(). -->> Pls look into this
Here i am pasting my script:
Code:
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("title:=CFS - Search Trades").Page("title:=CFS - Search Trades").ChildObjects(desc)
' check Browser("title:=CFS - Search Trades").Page("title:=CFS - Search Trades")
NoOfChildObjs = List.Count()
msgbox NoOfChildObjs
For i = 0 to NoOfChildObjs - 1
'List(i).Click
MsgBox List(i).GetROProperty("name")
MsgBox List(i).GetROProperty("file name")
Next