Am in process of automating the daily download of a zip file from secure site. Script is ready which uses the internet explorer to login and go to the required location and then click on download button, script works as expected till here.
Upon clicking download button, it prompts to click on save button. Have tried with send keys with below
$wshell = New-Object -ComObject WScript.Shell
$id = (gps iex* | where {$_.MainWindowTitle -match "Title"}).id
$wshell.AppActivate($id)
start-sleep 1
$wshell.SendKeys("%{n}")
Start-Sleep 1
want to send keys (Alt+n + TAB + ENTER), tried by changing few things but end up with the same result.