02-18-2011, 12:11 PM
Check the following code
Make sure that the browser is opened, after QTP application is launched
Code:
Dim obj_Desc
Set obj_Desc = Description.Create
obj_Desc("micclass").Value="Link"
Set Links = Browser("title:=Yahoo! Mail: The best web-based email!").Page("title:=Yahoo! Mail: The best web-based email!").ChildObjects(obj_Desc)
Msgbox "Number of Links " & Links.Count
Make sure that the browser is opened, after QTP application is launched