04-20-2012, 02:53 PM
One way of handling dynamic links is-
You can get the list of the links by using below code.
Then oLink object will have all the links.
Now use a for loop to get the exact link you want to operate.
You can get the list of the links by using below code.
Code:
Set oListofLinks= Browser().Page().Object.GetElementsByTagName("A")
Then oLink object will have all the links.
Now use a for loop to get the exact link you want to operate.
Code:
'code
For Each oLink in oListofLinks
If oLink.innertext = (name of the link) Then
oLink .Click()
'this is the req. link
End If
Next