07-12-2012, 04:38 PM
Hi
If we use Exists, then only the first link will be clicked but not the desired link.
so we can use following
If we use Exists, then only the first link will be clicked but not the desired link.
so we can use following
Code:
Set odesc=Description.Create()
odesc("micclass").value="link"
Set l_link=Browser("a").Page("b").WebTable("c").ChildObjects(odesc)
For i=0 to l_lionk.count-1
link_Title=l_link(i).GetROProperty("innertext")
If link_Title="XX" Then
l_link(i).Click
End If
Next