18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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.
file download
Hi all,
When using sahi, once after clicking a link, I need wait a file download dialog show up, and click open. how can I use sahi to do that?I only found _clearLastAlert() and so on.
Need your help, thanks.
When using sahi, once after clicking a link, I need wait a file download dialog show up, and click open. how can I use sahi to do that?I only found _clearLastAlert() and so on.
Need your help, thanks.
This discussion has been closed.
Comments
Please have a look at this: http://sahi.co.in/w/handle-file-downloads
We just added this.
Regards,
Narayan
Thanks for your help, now I can save file with these APIs, but you know, there are three buttons when download: open(O), save(S), cancel. so is there some api can open the file immediately like click the button open.
thanks,
Zhong
Sahi can only do a Save. You will need some other automation program, or use Java to read the downloaded file and make assertions on it.
Regards,
Narayan
Ok, I got it, thank you!
Regards,
Zhong