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:
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
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 </html> tag.
I think it would be like eofpage = drive.find_element(:tag_name, "/html")