02-10-2011, 05:12 AM
Hi All,
In the process of learning descriptive programming, I started with this small program to return the count of hyperlinks on "https://login.yahoo.com/config/login_verify2?&.src=ym"
My expectation is to get back the count of hyperlinks.
For this to run, I closed all the browsers and opened a new browser pointed to above URL. I have not made any other setup apart from writing this script in expert view and run it.
I ended up with
"The "Yahoo! Mail: The best web-based email! " object was not found in the Object Repository.
Check the Object Repository to confirm that the object exists or to find the correct name for the object.
Line (4):
Tip: If the objects in your application have changed, the Maintenance Run Mode can
help you identify and update your steps and/or the objects in your repository.
Since I'm working on descriptive programming, I suppose I need not have the objects declared in object repository. What am I missing here ? Please advise.
Thanks
Ravi
In the process of learning descriptive programming, I started with this small program to return the count of hyperlinks on "https://login.yahoo.com/config/login_verify2?&.src=ym"
Code:
Dim obj_Desc
Set obj_Desc = Description.Create
obj_Desc("micclass").Value="Links"
Set Links = Browser("Yahoo! Mail: The best web-based email! ").Page("Yahoo! Mail: The best web-based email! ").ChildObjects(obj_Desc)
Msgbox "Number of Links " & Links.Count
My expectation is to get back the count of hyperlinks.
For this to run, I closed all the browsers and opened a new browser pointed to above URL. I have not made any other setup apart from writing this script in expert view and run it.
I ended up with
"The "Yahoo! Mail: The best web-based email! " object was not found in the Object Repository.
Check the Object Repository to confirm that the object exists or to find the correct name for the object.
Line (4):
Code:
"Set Links = Browser("Yahoo! Mail: The best web-based email! ").Page("Yahoo! Mail: The best web-based email! ").ChildObjects(obj_Desc)".
Tip: If the objects in your application have changed, the Maintenance Run Mode can
help you identify and update your steps and/or the objects in your repository.
Since I'm working on descriptive programming, I suppose I need not have the objects declared in object repository. What am I missing here ? Please advise.
Thanks
Ravi