Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP and dynamic links
#4
Not Solved
One way of handling dynamic links is-
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
Reply


Messages In This Thread
QTP and dynamic links - by jnaneswari - 04-17-2012, 10:53 AM
RE: Hi - by avinash_learnqtp - 04-17-2012, 01:35 PM
RE: Hi - by sshukla12 - 04-17-2012, 01:39 PM
RE: Hi - by Shridevi.Salagare - 04-20-2012, 02:53 PM
RE: Hi - by supputuri - 05-29-2012, 09:31 AM
RE: QTP and dynamic links - by kallem rajender - 04-27-2012, 05:38 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)