Is that really a popup window (composed in HTML), or instead, a "File Save" dialog? I suspect it's the latter, in which case you can skip that step. Actually, likely the previous "popup" is a browser dialog box too.
The click on "File Download" will probably have the server transfer the data of the PDF file to you, and all you have to do is save that data to a file. According to the docs for WWW::Mechanize and LWP::UserAgent, you just need to use the methodget on the mech object and specify the path of the file you want to save it in.
HTH. | [reply] [d/l] |
Perl::Mechanize? I don't think that module exists.And in case you meant WWW::Mechanize, it doesn't pop up windows or dialogs ...
CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
| [reply] |