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.
sahi
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
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