Download a file and next redirect to a page

Download a file and next redirect to a page

  
I cannot redirect to a page when i did a file download;How to achieve that?
You can find attached an example OML.
 
This solution its based on the article : http://www.willmaster.com/blog/automation/one-link-download-and-redirect.php
 
Your requirement it's odd, so, what you get it's an odd solution.
 
Solution:
  • One Screen with a download button that redirects to the destination screen.
  • One Screen (DownloadFile.aspx)  with the file download in the preparation.
  •  RedirectedScreen has an meta tag <meta http-equiv="refresh" content="2; URL=DownloadFile.aspx">  Once the web page is completely loaded, it waits 2 seconds then initiates a file download. 
I don't have sure that's the best solution but, it's what i achieved.
 
This way, you can redirect and then download a file. 
 
I hope this will be helpful for you.