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.

_lastDownloadedFileName() returns NULL value

minmin Members
edited November -1 in Sahi - Open Source
Hi Guys,

I am having a problem with _lastDownloadedFileName() returns null value sometimes, I have used _wait(5000) api to wait for the file to be downloaded to the \userdata\temp folder, and I also used _lastDownloadedFileName() to check whether the file exists or not, but sometimes it returns me null value.

it seems that _wait() api is not that reliable at times, so do you guys have any other alternative way of doing this?


Thanks,

Min

Comments

  • Hi Min,

    You dont have to use explicit wait for downloading any large file.

    Is the file getting downloaded? Also,check if the file that you are downloading is correct one or not?

    Regards
    Sumitra
Sign In or Register to comment.