I first heard of Selenium yesterday when I was considering attempting to do this in Javascript (which I am not good at).
But I see that there are at least two versions, RC and WebDriver. Any others? Which should I get for the following task?
I can use Safari or Firefox on Mac. I prefer Safari.
I log in to a website with ID/password,
click one button to go to a page to review data that we have entered into a database in the past.
enter start & end dates.
web app generates a boatload of PDFs that I need to download, but each one is a separate icon.
Thus, I don't want to spend an hour clicking on PDF icons. And they all download with the same filename, but the Mac automatically renames so that they don't overwrite.
And there are two PDFs for each, the data in one and a status in the other, so I only need the status (but if I get both, deleting the status is trivial).
Each data link is in the form:
<td align="center" class="linked"><a href='javascript:viajeros("172633059")'>
<img src='img/pdf_recibos.png' border='0' width='20' height='20' alt='Parte de viajeros'/>
</a></td></tr>
but the number (parameter) is not predictable.
So, which tool is better for downloading all the PDFs? I see that I could write Javascript to scan the DOM for links that contain that function call and then do the call, but maybe Selenium would be easier?