I want to automate a daily download of a report from our credit card provider's website.
The file is dynamically generated, so I wont know the actual URL for the file itself.
I'm able to use powershell to navigate and login to the web page, and to click the "Download Report" button. But then the "File Download" dialog box appears, and I cant figure out how to press the "Save" button on that dialog.
It seems like my options are:
Somehow find that window, and try sending keystrokes
Somehow find the URL of the file when the dialog appears, and then download directly.
Find a way to disable "File Download" box in ie. (putting it in trusted sites didnt work)
I'm using:
$ie = New-Object -com "InternetExplorer.Application"
What would you suggest is the best approach?