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.
Javascript translation error
function GetJsId($id)
{
return $id.replace(/-/g, "");
}
var $ItemId = GetJsId(_hidden("Id").value);
_setValue(_textbox("DocEntity_form_" + $ItemId + "_BaseClass"), "ref");
Gets converted during test execution into this:
_setValue(_textbox("DocEntity_form_" + _hidden("Id").value.replace(/-\//, "") + "_BaseClass"), "ref");
which obviously doesn't work
Comments
ReferenceError: "GetJsId" is not defined. at 07.06.2010 18:25:25
If you wish to work with values from the browser, use _set. In your case:
BTW I've found the solution just 10 minutes before your post:)
PPS whats the purpose of <browser> tags?