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.
Write File
Hellow,
Running the script, I must generate a file with different times of the Sahi's script.
I have see that a solution to write a file is using _debugToFile
_debugToFile(
Running the script, I must generate a file with different times of the Sahi's script.
I have see that a solution to write a file is using _debugToFile
_debugToFile(
This discussion has been closed.
Comments
_debugToFile should have worked for you. Did you see any exception on the Sahi console?
Using ActiveXObject will not work since Sahi uses Rhino as its javascript engine, which does not understand ActiveXObjects (ActiveXObject are only supported by IE).
You can use java to write to a file if you want. Eg.
The code should be:
Let me know if this solves your issue.
Regards
Sumitra
Closing this thread as it is been solved in another thread.
Regards
Sumitra