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.
problem in handling pop ups
Hi ,
When i am clicking a link in my application ,i m getting a pop up to save the file.
My code is like this:
_click(_link("Government"));
_click(_link("Intra Governmental Collaboration"));
_click(_link("Organisational Structures"));
_assertNull(_lastDownloadedFileName());
_click(_link("Approved BOPU Structure")); //the file will get downloaded after clicking this link
_saveDownloadedAs("D:/sahi/temp/download/botswana.doc");
_clearLastDownloadedFileName(); // clear the variable
I have added 'doc' inside download_contenttype.txt.
After playback the log is showing success,but the file is not getting downloaded
Can u suggest where i m going wrong?
When i am clicking a link in my application ,i m getting a pop up to save the file.
My code is like this:
_click(_link("Government"));
_click(_link("Intra Governmental Collaboration"));
_click(_link("Organisational Structures"));
_assertNull(_lastDownloadedFileName());
_click(_link("Approved BOPU Structure")); //the file will get downloaded after clicking this link
_saveDownloadedAs("D:/sahi/temp/download/botswana.doc");
_clearLastDownloadedFileName(); // clear the variable
I have added 'doc' inside download_contenttype.txt.
After playback the log is showing success,but the file is not getting downloaded
Can u suggest where i m going wrong?
Comments
_popup("<Name>")._saveDownloadedAs"D:/sahi/temp/download/botswana.doc");
But no guarantees. I have had similar problems with popups.
RR