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.

how to format the text in a file that is written using writeToFile?

indraniindrani Members
edited July 2012 in Sahi - Open Source
I am sending inline messages and error messages ,input and output I am sending to one file using writeToFile it is appeding to the text but it is not to coming to next line how to format that one please explain this?
if($lastAlertMsg != null)
{
_debug($errField);
$errField = _getText(_div(0,_near(_label($i))));
_writeToFile($errField, "messages1.txt");
_log($msgLabel);
$msgLabel = "Log : " + $errField + "\t" + _getText(_label($i));
_writeToFile($msgLabel, "messages1.txt");
$i++;
}
can please help in this?
Indrani
OS:WindowsXP
Browser Name and Version-Mozilla Firefox13.0.1

Comments

  • indraniindrani Members
    how to format the text in a file to next line that is written using writeToFile?
Sign In or Register to comment.