title: How to click on all li elements in menu?
body: <p>I am trying to click on all links on top menu on site <a href="http://watirwebdriver.com/" rel="nofollow">http://watirwebdriver.com/</a></p>
  
  <pre><code>require 'watir-webdriver'
  
  class Proba
    def test
      b = Watir::Browser.new
      b.goto "watirwebdriver.com"
      b.ul(:id =&gt; 'menu-watirwebdriver-menu').lis.each do |li|
        li.click
      end
    end
  end
  
  proba = Proba.new
  proba.test
  </code></pre>
  
  <p>But there is a problem raised:
  <a href="https://gist.github.com/3239338" rel="nofollow">https://gist.github.com/3239338</a></p>
  
  <p>What could be a problem?</p>