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
The link itself isn’t the pdf as its generated on the fly:
source code of the link:
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
btw, I only started with Ruby and Mechanize less than 24 hours ago.