title: How to click on all links from fetched using Selenium Ruby
body: <p>I have written following lines to click all links in fetched page but it clicks on one link only and stuck there clicking , I have used Selenium Web Driver API:</p>
  
  <pre><code>require 'rubygems'
  require 'selenium-webdriver'
  
  driver = Selenium::WebDriver.for :firefox
  driver.get " http://www.testfire.net "
  for i in 1..100
      link = driver.find_element(:tag_name, "a")
      link.click
  end
  </code></pre>
  
  <p>tell me how can I skip clicked link and go to next one or can set the range from 1 to until it reaches end of html page at <code>&lt;/html&gt;</code> tag.
  I think it would be like <code>eofpage = drive.find_element(:tag_name, "/html")</code></p>