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.
Alert in javascript with slash before quotes
Hi
While i run the values
PName = _textbox(getting this value from excel)
PValue = LOGON_USERNAME(getting this value from excel)
After that i am doing below code
var $a = $PName.concat("("+"\""+$PValue+"\""+")");
_alert($a);
This alert gives me as _textbox("LOGON_USERNAME")
But i am getting in Sahi Controller as _alert("_textbox(\"LOGON_USERNAME\")");
Bcoz of this issue i cant able to focus my property,
_focus("_textbox(\"LOGON_USERNAME\")");
Finally
I need output as _focus(_textbox("LOGON_USERNAME"));
Kindly help me on this ...
Thanks
Gopikannan
While i run the values
PName = _textbox(getting this value from excel)
PValue = LOGON_USERNAME(getting this value from excel)
After that i am doing below code
var $a = $PName.concat("("+"\""+$PValue+"\""+")");
_alert($a);
This alert gives me as _textbox("LOGON_USERNAME")
But i am getting in Sahi Controller as _alert("_textbox(\"LOGON_USERNAME\")");
Bcoz of this issue i cant able to focus my property,
_focus("_textbox(\"LOGON_USERNAME\")");
Finally
I need output as _focus(_textbox("LOGON_USERNAME"));
Kindly help me on this ...
Thanks
Gopikannan