Micro Focus QTP (UFT) Forums
Verify the order of web links - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Verify the order of web links (/Thread-Verify-the-order-of-web-links)



Verify the order of web links - bpetters - 04-16-2013

Hi.

Dose anyone knowh how I can check the order of links on a webpage?
If I have a section in a webpage with 10 links, I want to verify that these links always is displayed in the same correct order.

I have tried to use 'Visual relation identifier', but that didn't work as I expected.
And I get this error, of course: "The selected test object sannot be used as a related object, because other objects are defined as related objects for it"


RE: Verify the order of web links - sshukla12 - 04-16-2013

Hi,

If you now the name of these links you might succeed in doing that.
Use discription for thsi, count the number of links on page, navigate through each link and get the innertext property, compare it with the name of the links you have.

This approach might be helpful 2 u.

Regards,
Sankalp


RE: Verify the order of web links - bpetters - 04-16-2013

Now I do not understand quite what you mean?


RE: Verify the order of web links - sshukla12 - 04-16-2013

Hi,

If u have name of the weblinks in the order u want to verify then use description and check the count of the links on the page and yhier ordering.

Regards,
Sankalp