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.
Does sahi supports Activex objects
i have created a script in jS and trying to run in sahi as function
error is displayed ..
function DeleteLine($spath, $spattern)
{
//Const ForReading=1; Const ForWriting=2;
var fso = new ActiveXObject("Scripting.FileSystemObject");
var a = fso.opentextfile(spath,ForReading);
Do Until a.AtEndOfStream
newfile=a.ReadLine;
If (instr(newfile,spattern) or spattern="" )
{
NewFile1=NewFile1 ;
}
Else {
NewFile1=NewFile1&newfile&\r \n ;
}
Loop
a.Close ;
var fso = new ActiveXObject("Scripting.FileSystemObject");
var a = fso.opentextfile(spath,forwriting);
a.Write NewFile1;
a.Write "</svg>";
a.Close ;
}
error is displayed ..
function DeleteLine($spath, $spattern)
{
//Const ForReading=1; Const ForWriting=2;
var fso = new ActiveXObject("Scripting.FileSystemObject");
var a = fso.opentextfile(spath,ForReading);
Do Until a.AtEndOfStream
newfile=a.ReadLine;
If (instr(newfile,spattern) or spattern="" )
{
NewFile1=NewFile1 ;
}
Else {
NewFile1=NewFile1&newfile&\r \n ;
}
Loop
a.Close ;
var fso = new ActiveXObject("Scripting.FileSystemObject");
var a = fso.opentextfile(spath,forwriting);
a.Write NewFile1;
a.Write "</svg>";
a.Close ;
}