Posts: 60
Threads: 24
Joined: Jun 2012
Reputation:
0
07-13-2012, 04:03 PM
(This post was last modified: 07-13-2012, 04:09 PM by sia sharma.)
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
Posts: 60
Threads: 24
Joined: Jun 2012
Reputation:
0
07-13-2012, 05:30 PM
from this we can only prove that link is working
but how can we prove that the link is redirecting to right page?
Posts: 426
Threads: 4
Joined: Aug 2011
Reputation:
0
07-13-2012, 05:53 PM
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
Posts: 60
Threads: 24
Joined: Jun 2012
Reputation:
0
07-13-2012, 05:58 PM
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?
Posts: 426
Threads: 4
Joined: Aug 2011
Reputation:
0
07-16-2012, 10:24 AM
Ya ...u can go with this approach also....
Regards,
Sankalp