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.
Unable to attach a file and upload functionality
Hi,
Scripts:--
_setSelected(_select("collectionId"), "Testing");
_setFile(_file("uploads[0]"), "C:\\Documents and Settings\\136052\\Desktop\\Excel_34_0.xls");
_click(_link("Submit"));
Script Description:--
i have seleted the collection from the drop down
use the _setFile function to set the file Excel_34_0.xls , and it is kept on the location specified
now when i click on the "Submit" button , the file should get uploaded.
But the issue is that, playback logs shows the successful execution of the scripts, but the file is not get uploaded.
or _click(_link("Submit")); statement do not work after _setFile, that's why file is not getting uploaded.???
Please suggest me the proper solution for the same.
I would really appreciate if someone could help me as soon as possible.
Scripts:--
_setSelected(_select("collectionId"), "Testing");
_setFile(_file("uploads[0]"), "C:\\Documents and Settings\\136052\\Desktop\\Excel_34_0.xls");
_click(_link("Submit"));
Script Description:--
i have seleted the collection from the drop down
use the _setFile function to set the file Excel_34_0.xls , and it is kept on the location specified
now when i click on the "Submit" button , the file should get uploaded.
But the issue is that, playback logs shows the successful execution of the scripts, but the file is not get uploaded.
or _click(_link("Submit")); statement do not work after _setFile, that's why file is not getting uploaded.???
Please suggest me the proper solution for the same.
I would really appreciate if someone could help me as soon as possible.