Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
to check whether particlular link is clickable or not
#1
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
Reply
#2
Hi,
Use this
Code:
url_Value=Browser().Page().WebLink().GetRoProperty("href") if len(url_Value)>0 then 'Pass else 'Fail End if

Regards,
Sankalp
Reply
#3
from this we can only prove that link is working
but how can we prove that the link is redirecting to right page?
Reply
#4
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
Reply
#5
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?
Reply
#6
Ya ...u can go with this approach also....

Regards,
Sankalp
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Smile Email link check LTFL 0 2,204 09-16-2009, 11:50 PM
Last Post: LTFL

Forum Jump:


Users browsing this thread: 1 Guest(s)