title: Using Watir to check for bad links
body: <p>I have an unordered list of links that I save off to the side, and I want to click each link and make sure it goes to a real page and doesnt 404, 500, etc.</p>
  
  <p>The issue is that I do not know how to do it. Is there some object I can inspect which will give me the http status code or anything?</p>
  
  <pre><code>mylinks = Browser.ul(:id, 'my_ul_id').links
  
  mylinks.each do |link|
    link.click
  
    # need to check for a 200 status or something here! how?
  
    Browser.back
  end
  </code></pre>