From: Dan Mansfield Date: 2010-09-13T05:53:08+09:00 Subject: Mechanize file save on generated link Hi there, I'm working on a project to automate retrieval of content and the download of a pdf bill from an ISPs website. I have 30 connections with this ISP and each has its own username and password. So far I have been able to get the content I need that is actually stored within the page. You have to login and go to a specific page to be able to click on the link. The link itself isn't the pdf as its generated on the fly: source code of the link: Download PDF I'm selecting it with: link = invoice_page.links_with(:href => "/be-portal/downloadPdf") how can I click this link to download the pdf and store it to the filesystem? btw, I only started with Ruby and Mechanize less than 24 hours ago. TIA Regards, Dan -- Posted via http://www.ruby-forum.com/.