12-01-2011, 12:13 PM
(This post was last modified: 12-01-2011, 12:17 PM by ravi.gajul.)
Get all the links displayed in an array and compare the text property of the required link with the links fetched.You may use child objects method to get all the links.
for ex:
Regards,
Ravi
for ex:
Code:
set allLinks=Browser().Page().childobjects(<Linktype>)
for i=0 to allLinks.length-1
If allLinks(i).getRoProperty("innertext")="ABC" then
msgbox "Link Exists"
Else
msgbox "link doesn't exist"
End If
Next
Regards,
Ravi