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.
//@ is not allowed
check.js
baby.jsp
when check() is executed, lengthcheck is undefined javascript error, and stop
function check(str){
//@ lengthcheck
var inputCheckResult = true;
// check result
if (inputCheckResult) {
//the first「.」is not allowed
if("." == str[0].substring(0, 1)){
inputCheckResult = false;
}
}
}
baby.jsp
<SCRIPT type="text/javascript" src="/KissProject/js/check.js?1281402756281"></script>
<script language="javascript">
check("baby!!!");
</script>
when check() is executed, lengthcheck is undefined javascript error, and stop
Comments
before://@ lengthcheck
after: // @ lengthcheck
baby.jsp
when check() is executed, no error occurs
//@ seems to work fine. Does your web application do any preprocessing of pages? One way to check would be to look at the source code as seen on the browser, using firebug or some such tool.
Regards,
Narayan
//@ is OK
in version 0806
//@ will cause javascript error
every body could try this jsp
when you play back you will get error baby is undefined
XP+IE8+sahi20100820