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 2 read text from file and capture a specific text from that file
Hi ,
I want to read text from a file and capture a specific text from that file.
To read a file i used :
var $content = _readFile("D:\\test_work\\input.txt");
Now i want to capture a specific text from this file (input.txt) and write in some other file.
How can i proceed further..
How can i do this using sahi.
I want to read text from a file and capture a specific text from that file.
To read a file i used :
var $content = _readFile("D:\\test_work\\input.txt");
Now i want to capture a specific text from this file (input.txt) and write in some other file.
How can i proceed further..
How can i do this using sahi.
Comments
Please elaborate on your requirement with an example.
Regards,
Pankaj.
http://www.w3schools.com/js/js_obj_regexp.asp
You can use _debugToFile to write the data out to another file:
http://sahi.co.in/w/_debugtofile