to check whether particlular link is clickable or not - 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: to check whether particlular link is clickable or not (/Thread-to-check-whether-particlular-link-is-clickable-or-not) |
to check whether particlular link is clickable or not - sia sharma - 07-13-2012 Hello everyone, i have a link ... after clicking on that link it redirect the user to another page. i want to prove that link is working fine. basically want to capture url into a variable and then check whether that variable exist thanks Sia RE: to check whether particlular link is clickable or not - sshukla12 - 07-13-2012 Hi, Use this Code: url_Value=Browser().Page().WebLink().GetRoProperty("href") Regards, Sankalp RE: to check whether particlular link is clickable or not - sia sharma - 07-13-2012 from this we can only prove that link is working but how can we prove that the link is redirecting to right page? RE: to check whether particlular link is clickable or not - sshukla12 - 07-13-2012 For that u must know which page is to be displayed. 1) Click on the link 2) USe sync to get the new page open. 3) Get the tittle or other details of the page. 4) Verify it with the expected result. Regards, Sankalp RE: to check whether particlular link is clickable or not - sia sharma - 07-13-2012 comparing two url's will work? we can take the url of a link to variable1 and into second variable2 we can take the expected url and compare variable1 and variable2 will this be the good solution? RE: to check whether particlular link is clickable or not - sshukla12 - 07-16-2012 Ya ...u can go with this approach also.... Regards, Sankalp |