18 January 2026:


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.

Not able to Create and Write the data in a CSV file

vatsanvatsan Members
edited November -1 in Sahi - Open Source
Hi,

I tried to write CSV file using the following command. but i found that the file is not being created in the specific path.

do i have to change any security settings, permissions, ActiveX controls setting etc...


var $data = [ [2, 3, 5], [1, 2, 4], [4, 3, 7] ];

_writeCSVFile($data , "D:\Test\ex.csv", true, ",");


Please help

Comments

  • Hi vatsan,

    It should be:

    var $data = [ [2,3,5], [1,2,4], [4,3,7] ];

    _writeCSVFile($data , "D:/Test/ex.csv", true, ",");

    OR

    _writeCSVFile($data , "D:\\Test\\ex.csv", true, ",");

    Regards
    Sumitra
  • Hi Sumitra,

    Yes, it is working now. Thanks for helping


    Regards,
    Vatsan
This discussion has been closed.