Task: I have to open a web page (https), enter username and password, click some links to get to a desired page and then download all files (pdf) to a shared folder on our internal network.
I'd like to do this with windows service which would run once every night. What is the best way to do this?
I tried watin, it is pretty easy to fire up a browser, navigate to my web page, enter username and password, click some links, ... but then I don't know how to automatically download a file. As I understand, you can't do this without user interaction. Also - I don't know if it is even possible to run watin from windows service; where would the browser instance be running?
Any other ideas?
You can do the following:
C#
client program that will run a local server which
will submit the page fileURL
to the PDF
downloadable pagesession
.Writing such a program wont take more than an hour from your time.
Advantages: