11-23-2010, 05:34 PM
(This post was last modified: 11-23-2010, 05:50 PM by KavitaPriyaCR.)
Hi
please find the below example
If you want to click on the link...then inside the for loop you can write
rc(i).Click
please find the below example
Code:
Set oDesc = Description.Create()
oDesc("html tag").Value = "A"
Set rc = Browser().Page().ChildObjects(oDesc)
num = rc.Count()
For i=0 to num-1
tag = rc(i).GetROProperty("innertext")
href = rc(i).GetROProperty("href")
Reporter.ReportEvent 0, "Links in Page", "name: " & tag & "; url: " & href
Next
If you want to click on the link...then inside the for loop you can write
rc(i).Click