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.
Sometimes sahi injected javascript not at beginning of Login page. Page doesn't display
Hi, sometimes the sahi javascript injection is after the page title and that is when my login page does not display. IE10. Does anyone know how to fix this? thanks.
Good:
<html><head><!--SAHI_INJECT_START-->
<script>/*<![CDATA[*//*---->*/__sahiDebugStr__="";__sahiDebug__=function(s){__sahiDebugStr__+=(s+"\n");};/*--*//*]]>*/</script>
<script src="/_s_/dyn/SessionState_domainfix/domainfix.js"></script>
<script src="/_s_/spr/ext/javascript-xpath/javascript-xpath.js"></script><script id="_sahi_concat" src="/_s_/spr/concat.js"></script>
<script src="https://sahi.example.com/_s_/dyn/SessionState/state.js"></script>
<script id="langpack" src="/_s_/spr/language_pack.js"></script>
<script>/*<![CDATA[*//*---->*/_sahi.createCookie('sahisid', _sahi.sid);_sahi.loadXPathScript()/*--*//*]]>*/</script>
<script>/*<![CDATA[*//*---->*/eval(_sahi.sendToServer("/_s_/dyn/Player_script/script.js"));/*--*//*]]>*/</script>
<script src="/_s_/spr/playback.js"></script>
<!--SAHI_INJECT_END-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=8,9">
<link href="css/csm.css" rel="stylesheet" type="text/css">
<title>User Login</title>
</head>
Bad:
<HTML><HEAD><TITLE>User Login</TITLE><!--SAHI_INJECT_START-->
<SCRIPT>/*<![CDATA[*//*---->*/__sahiDebugStr__="";__sahiDebug__=function(s){__sahiDebugStr__+=(s+"\n");};/*--*//*]]>*/</SCRIPT>
<SCRIPT src="/_s_/dyn/SessionState_domainfix/domainfix.js"></SCRIPT>
<SCRIPT src="/_s_/spr/ext/javascript-xpath/javascript-xpath.js"></SCRIPT>
<SCRIPT id=_sahi_concat src="/_s_/spr/concat.js"></SCRIPT>
<SCRIPT src="https://sahi.example.com/_s_/dyn/SessionState/state.js"></SCRIPT>
<SCRIPT id=langpack src="/_s_/spr/language_pack.js"></SCRIPT>
<SCRIPT>/*<![CDATA[*//*---->*/_sahi.createCookie('sahisid', _sahi.sid);_sahi.loadXPathScript()/*--*//*]]>*/</SCRIPT>
<SCRIPT>/*<![CDATA[*//*---->*/eval(_sahi.sendToServer("/_s_/dyn/Player_script/script.js"));/*--*//*]]>*/</SCRIPT>
<SCRIPT src="/_s_/spr/playback.js"></SCRIPT>
<!--SAHI_INJECT_END-->
<META content="text/html; charset=UTF-8" http-equiv=Content-Type>
<META content=IE=8,9 http-equiv=X-UA-Compatible><LINK rel=stylesheet type=text/css href="css/csm.css"></HEAD>
<BODY><!-- RECOMMENDED if your web app will not function without JavaScript enabled -->
Good:
<html><head><!--SAHI_INJECT_START-->
<script>/*<![CDATA[*//*---->*/__sahiDebugStr__="";__sahiDebug__=function(s){__sahiDebugStr__+=(s+"\n");};/*--*//*]]>*/</script>
<script src="/_s_/dyn/SessionState_domainfix/domainfix.js"></script>
<script src="/_s_/spr/ext/javascript-xpath/javascript-xpath.js"></script><script id="_sahi_concat" src="/_s_/spr/concat.js"></script>
<script src="https://sahi.example.com/_s_/dyn/SessionState/state.js"></script>
<script id="langpack" src="/_s_/spr/language_pack.js"></script>
<script>/*<![CDATA[*//*---->*/_sahi.createCookie('sahisid', _sahi.sid);_sahi.loadXPathScript()/*--*//*]]>*/</script>
<script>/*<![CDATA[*//*---->*/eval(_sahi.sendToServer("/_s_/dyn/Player_script/script.js"));/*--*//*]]>*/</script>
<script src="/_s_/spr/playback.js"></script>
<!--SAHI_INJECT_END-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=8,9">
<link href="css/csm.css" rel="stylesheet" type="text/css">
<title>User Login</title>
</head>
Bad:
<HTML><HEAD><TITLE>User Login</TITLE><!--SAHI_INJECT_START-->
<SCRIPT>/*<![CDATA[*//*---->*/__sahiDebugStr__="";__sahiDebug__=function(s){__sahiDebugStr__+=(s+"\n");};/*--*//*]]>*/</SCRIPT>
<SCRIPT src="/_s_/dyn/SessionState_domainfix/domainfix.js"></SCRIPT>
<SCRIPT src="/_s_/spr/ext/javascript-xpath/javascript-xpath.js"></SCRIPT>
<SCRIPT id=_sahi_concat src="/_s_/spr/concat.js"></SCRIPT>
<SCRIPT src="https://sahi.example.com/_s_/dyn/SessionState/state.js"></SCRIPT>
<SCRIPT id=langpack src="/_s_/spr/language_pack.js"></SCRIPT>
<SCRIPT>/*<![CDATA[*//*---->*/_sahi.createCookie('sahisid', _sahi.sid);_sahi.loadXPathScript()/*--*//*]]>*/</SCRIPT>
<SCRIPT>/*<![CDATA[*//*---->*/eval(_sahi.sendToServer("/_s_/dyn/Player_script/script.js"));/*--*//*]]>*/</SCRIPT>
<SCRIPT src="/_s_/spr/playback.js"></SCRIPT>
<!--SAHI_INJECT_END-->
<META content="text/html; charset=UTF-8" http-equiv=Content-Type>
<META content=IE=8,9 http-equiv=X-UA-Compatible><LINK rel=stylesheet type=text/css href="css/csm.css"></HEAD>
<BODY><!-- RECOMMENDED if your web app will not function without JavaScript enabled -->