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.
trim the variable
May I know how to remove the white space from the variable. I used trim(), but I got following error..
TypeError: Cannot find function trim in object
Pls help.
TypeError: Cannot find function trim in object
Pls help.
Comments
trim($line);
function trim(str) {
return str.replace(/^\s+|\s+$/g,"");
}