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.
Getting DOM object in CSV file instead of its value while writing
Hi,
I am trying to store a array in csv file,But in the CSV file the value is getting stored as
_sahi._textbox(\dAnnlPrm\").value, _sahi._textbox(\comPropNbr\").value
format instead of the actual value.
Script:-
var $FirstPremiumAmount =_textbox("dAnnlPrm").value;
var $ProposalNo = _textbox("comPropNbr").value;
var $result = new Array();
$result[0] = [$FirstPremiumAmount, $ProposalNo];
_writeCSVFile($result, "c:/sahi/userdata/scripts/NewBusiness/Result.csv", true, ",");
Please help.
Thanks in advance.
I am trying to store a array in csv file,But in the CSV file the value is getting stored as
_sahi._textbox(\dAnnlPrm\").value, _sahi._textbox(\comPropNbr\").value
format instead of the actual value.
Script:-
var $FirstPremiumAmount =_textbox("dAnnlPrm").value;
var $ProposalNo = _textbox("comPropNbr").value;
var $result = new Array();
$result[0] = [$FirstPremiumAmount, $ProposalNo];
_writeCSVFile($result, "c:/sahi/userdata/scripts/NewBusiness/Result.csv", true, ",");
Please help.
Thanks in advance.
Comments
var $FirstPremiumAmount = _getValue(_textbox("dAnnlPrm"));
var $ProposalNo = _getValue(_textbox("comPropNbr"));