Answered By: A Maheswara Rao
Set oLinkDesc = Description.Create()
oLinkDesc("html tag").Value = "A"
Set nLinksCollection = Browser("title:=.*"”).Page("title:=.*").ChildObjects(oLinkDesc)
nLinksCount = nLinksCollection.Count()
For i=0 to nLinksCount-1
sName = nLinksCollection(i).GetROProperty("innertext")
sHref = nLinksCollection(i).GetROProperty("href"”)
Reporter.ReportEvent 0, "Links name: " & sName & "; URL: " & sHref
Next
Follow @TestingQ
Set oLinkDesc = Description.Create()
oLinkDesc("html tag").Value = "A"
Set nLinksCollection = Browser("title:=.*"”).Page("title:=.*").ChildObjects(oLinkDesc)
nLinksCount = nLinksCollection.Count()
For i=0 to nLinksCount-1
sName = nLinksCollection(i).GetROProperty("innertext")
sHref = nLinksCollection(i).GetROProperty("href"”)
Reporter.ReportEvent 0, "Links name: " & sName & "; URL: " & sHref
Next