Any reason why you need to actually click and go to back with browser each time?
Why not store all the links and then visit them one by one:
browser.table(:class => "tblElencoProdotti").
links(:class => "TXT10b").map(&:href).
each { |url| browser.goto url }
Update:
If the links are only clickable due to JavaScript magic
, then try something like this:
links_count = browser.table(:class => "tblElencoProdotti").links(:class => "TXT10b").size
links_count.times do |index|
browser.table(:class => "tblElencoProdotti").links(:class => "TXT10b")[index].click
browser.back
end
This solution should clear the cache. I'm not sure, but maybe there's some better way to relocate everything and not rely on already cached elements.