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.
How to run demo programs included in sahi.jar file
Hello,
I am facing problem in running demo programs, especially for fileUpload.sah
please any one tell me that how to run fileUpload.sah.
I am facing problem in running demo programs, especially for fileUpload.sah
please any one tell me that how to run fileUpload.sah.
Best Answers
-
Hi Chaitanya,
What is the problem you're facing in running the demo scripts? Please let us know.
To run fileUpload.sah please follow the steps mentioned below:
1. Start the controller and go to the playback tab.
2. Enter demo/fileUpload.sah in the file textbox and set the start URL to http://sahi.co.in/demo/
3. Click play button.
This should successfully run fileupload.sah for you.
If you still face any difficulty, please let me know.
Regards. -
Hi Chaitanya,
Follow the link:
Try file upload using native events.http://sahi.co.in/w/_setFile
Regards,
Akash.
Answers
But I follow the steps provided by you. but still it gives error as "Not Found"
Thanks,
Chaitanya
my code is as follows
"_popup("Application_Nm")._setFile(_file("file"), $doc);"
$doc indicate it is excel variable with its path.
after running this code it shows me error as follws.
Logging exception:
_popup("Application_Nm")._setFile(_file("file"), "Path to PDF file");
TypeError: el is undefined
Sahi.prototype._setFile@http://IP/_s_/spr/concat.js:1091
http://IP/_s_/spr/concat.js:3016
Sahi.prototype.ex@http://IP/_s_/spr/concat.js:3016
http://IP/_s_/spr/concat.js:2822