I recorded a test in which I click a image link in a table which opens another browser window with a dialog box (File Download) to open/save a cvs file.
I recorded the scenario, but when I run it,the second browser is opened and closed very quickly and so the dialog box does not get open. If I manually try it works fine.

Please suggest any ideas and the code to work this scenario.