On Fri, Jun 5, 2009 at 2:33 PM, ash <ashbr...@gmail.com> wrote:
> What I need is a way of clicking each link on a page to ensure they
> don't error.

I would do it something like this (not tested):

browser.links.each do |link|
  browser.goto link
  # check if page is ok
  browser.back
end

Željko
--
http://watirpodcast.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to