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.

on HTTPS based AJAX application get domainfix.js on each page

sivadreamssivadreams Members
edited February 2009 in Sahi - Open Source
While going thru a record or without SAHI the application works fine, During playback, i get only the AJAX part of the page rendered and the rest of the application area is not visible at all or not rendered. and so the script could not find the elements and fails.

Observation:
in my test application where the whole application in on the same domain, I get this string [src="/_s_/spr/domainfix.js">] without square brackets.

Can somebody help...?

Some of my doubts where on certificate and I had also created the certificate using keytool and still it did not help.

Regards
Siva

Comments

  • narayannarayan Administrators
    Can you specify which browser and which Sahi build you are using?
    It looks like you may need to add to exclude_inject.txt to prevent Sahi from injecting that content into your AJAX replies.
  • Hi

    The version we are using is (Build: 2008-10-26). The reason why we are using this is it works out of the box on most of the screens with https.
    the newer versions did not work.

    Browser is IE7

    An update on the same issue:
    We could make it work with changes in ..\sahi\htdocs\spr\concat.js file.

    The dev team had told us that the jquery implementation in our application is conflicting with the way sahi works. Let me know how do i send u the concat.js file which we are using. This had fixed the issue for which I had opened the topic for. My scripts execute fine now.

    I am actively using sahi in the last two days and its just my third day today. Please bare with my way immature way of reporting on this.

    But still i get this [src="/_s_/spr/domainfix.js">] displayed on the application. can you let me know the ways to get this out.

    Meanwhile, I shall download the latest SAHI and give a go on it today

    Regards
    Siva
  • narayannarayan Administrators
    Siva,
    You can email me the concat.js file at narayan@sahi.co.in .
    Do have a look at the new build released yesterday (in sahi-v2-nightly-unstable). The https and a few other bugs have been fixed in it.
    Regards,
    Narayan
Sign In or Register to comment.