I'm trying to download some .xls file using selenium WebDriver with ChromeDriver and PhantomJSD (for background mode). It's works just perfect with ChromeDriver, but PhantomJS doesn't download the file.
So what is my code simplly do is login some website and click this button:
<button id="btnExcelExport" aria-label="יצוא נתונים" class="" data-tooltip="יצוא לאקסל">
</button>
When the button have been clicked, an frame created with link:
<iframe src="/Online/ExportExcel.ashx?ExportParameter=ExportToExcel&Action=75273143-ee19-47ad-91ac-1377fe3c8875&Alias=428" style="display: none;"></iframe>
Since I found out that PhantomJS doesn't support downloading, I tried to manually downlaod the file by using this code link with some small modification to match it to my code.
In result, it downloading the html file code of the login page.
How can I manage to download this file?
(or should I give up on PhantomJS but I couldn't found an easy repalcement..)
Thanks!