michael
12/5/2006 9:56:00 PM
I am navigating through web page using WATIR..
and as you know, many web pages has "Next" link that allows us to go to
the next page by clicking this "Next" link.
Now when the page reaches the last page, although "Next" is present,
but it is no longer a link.
At this point, if my code still goes to:
ie.link(:text, "Next").click
then I get the error message..
Is there anyway I can have WATIR check whether "Next" is link or not,
and if it is a link, then go to
ie.link(:text, "Next").click,
and if it is just plain text, do not go to ie.link(:text,
"Next").click??
thanks.