C
curious
I am using code below to click in a page when it finds "Next" link.
ie.linktext, "Next").click
But as many of you know, many web pages have these next links that goes
on and on, but when it reaches the last pages, it no longer has link
although the text "Next" is present.
So "Next" is present but link is no longer present.
If WATIR code still ask for "ie.linktext, "Next").click" in the last
page, I would get error message at this point.
Is there anyway, I can start this "ie.linktext, "Next").click" only
after checking whether the link is present or not??
So when it reaches the last page, although "Next" text is present, if
link is not present, then rather than producing error message, stop the
code, and go to the next process..
any help will be deeply appreciated..
ie.linktext, "Next").click
But as many of you know, many web pages have these next links that goes
on and on, but when it reaches the last pages, it no longer has link
although the text "Next" is present.
So "Next" is present but link is no longer present.
If WATIR code still ask for "ie.linktext, "Next").click" in the last
page, I would get error message at this point.
Is there anyway, I can start this "ie.linktext, "Next").click" only
after checking whether the link is present or not??
So when it reaches the last page, although "Next" text is present, if
link is not present, then rather than producing error message, stop the
code, and go to the next process..
any help will be deeply appreciated..