18 January 2026:


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.

Problem while recording(domainfix,concat,state,language_pack,playback)

dshanmugamdshanmugam Members
edited August 2011 in Sahi - Open Source
Hi there,

We are CMS GlobalSoft, Inc. from Virginia. We are new to Sahi and were exploring Sahi from last week and it was great. We were able to record and playback most of our webpages but only few produce errors like below. We are getting all the 8 errors below for the dialog window opened from parent window and when this occurs Sahi can't recognize any object (CTRL + Mouseover). Is there a way to solve this problem? Any thoughts?

All the errors look like below:
An error has occurred in the script on this page.
Do you want to continue running scripts on this page?

192.168.0.172/wl/TOOLS/PRODUCTSFORMDETAIL.ASP?Task=Add (error at Line 189 in our code)
192.168.0.172/_s_/dyn/SessionState_domainfix/domainfix.js (error at Line 1)
192.168.0.172/_s_/spr/concat.js (error at Line 1)
192.168.0.172/_s_/dyn/SessionState/state.js (error at Line 1)
192.168.0.172/_s_/spr/language_pack.js (error at Line 1)
192.168.0.172/wl/TOOLS/PRODUCTSFORMDETAIL.ASP?Task=Add (error at Line 194 in our code)
192.168.0.172/wl/TOOLS/PRODUCTSFORMDETAIL.ASP?Task=Add (error at Line 195 in our code)
192.168.0.172/_s_/spr/playback.js (error at Line 1)

From the log file (injected code):

Line 189: 1<script>/*<![CDATA[*//*---->*/__sahiDebugStr__="";__sahiDebug__=function(s){__sahiDebugStr__+=(s+"\n");};/*--*//*]]>*/</script>

Line 194: <script>/*<![CDATA[*//*---->*/_sahi.createCookie('sahisid', _sahi.sid);_sahi.loadXPathScript()/*--*//*]]>*/</script>

Line 195: <script>/*<![CDATA[*//*---->*/eval(_sahi.sendToServer("/_s_/dyn/Player_script/script.js"));/*--*//*]]>*/</script>
<script src='/_s_/spr/playback.js'></script>


OS: Win 7
Browser: IE-8
ASP pages.
Sahi (Build: 2011-07-19)

Comments

  • narayannarayan Administrators
    Hi dshanmugam,

    Does PRODUCTSFORMDETAIL.ASP?Task=Add fetch back a full html page or just some small snippet of json/js/html code?

    My guess is that Sahi is injecting code into some pages which should not be injected with. Have a look at the troubleshooting section (http://sahi.co.in/w/trouble-shooting-sahi) to see how this can be rectified. If it still does not work for you, let us know.

    Regards,
    narayan
  • narayannarayan Administrators
    Hi dshanmugam,

    Does PRODUCTSFORMDETAIL.ASP?Task=Add fetch back a full html page or just some small snippet of json/js/html code?

    My guess is that Sahi is injecting code into some pages which should not be injected with. Have a look at the troubleshooting section (http://sahi.co.in/w/trouble-shooting-sahi) to see how this can be rectified. If it still does not work for you, let us know.

    Regards,
    narayan
  • narayannarayan Administrators
    Hi dshanmugam,

    Does PRODUCTSFORMDETAIL.ASP?Task=Add fetch back a full html page or just some small snippet of json/js/html code?

    My guess is that Sahi is injecting code into some pages which should not be injected with. Have a look at the troubleshooting section (http://sahi.co.in/w/trouble-shooting-sahi) to see how this can be rectified. If it still does not work for you, let us know.

    Regards,
    narayan
Sign In or Register to comment.