How to get count of all links on a web page and click on each link using Description Object (Description.Create) in QTP
'Open the URL Systemutil.Run "iexplore" , "www.gooogle.com" 'Create the Browser object - No need to create for this example as we are using 'creationtime' to recognise the browser Set oBrowser = Description.Create oBrowser ( "micclass" ). value = "Browser" oBrowser ( "name" ). value = "Google" 'Create the Page object Set oPage = Description.Create oPage ( "micclass" ). value = "Page" oPage ( "title" ). value = "Google" 'Create the Link object Set oLink = Description.Create oLink ( "micclass" ). value = "Link" oLink ( "html tag" ). value = "A" 'Get all links (child items with link as type) for the browser Set colObject = Browser ( "Creationtime:=0" ). Page ( oPage ). ChildObjects ( oLink ) 'Display count of all links Msgbox ColObject.Count ...