18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Downloads are returning 0 bytes of data when they are saved

ThomasAWSTThomasAWST Members
edited November -1 in Sahi - Open Source
Windows 7 (64bit)
Sahi: V3.5, Build: 2011-07-19
Browsers IE9, Firefox and Chrome

Please help, all downloads are returning 0 bytes of data when they are saved. File types are mostly pdf’s and zip files. I can see the file has data in the sahi/userdata/temp/download folder but when it is moved to the save folder the files blank. This was working at one point but no longer is.

My code is as follows
_click(_link(16));
_clearLastDownloadedFileName();
_assertNull(_lastDownloadedFileName());
_click(_link(13));
_saveDownloadedAs("H://Sahi_Testing//Sample_Report.pdf");
_clearLastDownloadedFileName();
_assertNull(_lastDownloadedFileName());
_wait(3000);
_click(_link("Home"));
Sign In or Register to comment.