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.

Have trouble with AJAX calls using IE

sanjeevkumar7sanjeevkumar7 Members
edited November -1 in Sahi - Open Source
Hi - I have a problem where AJAX calls are not being processed by IE when trying to access a page through sahi proxy.

For example : I have a control which makes an ajax call and populate few other drop boxes, which doesn't load.

I get a js error on the browser complaining "Object doesn't support this property or method"

Same thing happens wherever AJAX is used in our website.

The same webpage loads w/out any issue in FF with proxy enabled.

Please help.

Thanks!
Sanjeev

Comments

  • narayannarayan Administrators
    Hi Sanjeev,

    We have sent you an email pointing to a new build. Please check if it works.

    Regards,
    Narayan
  • Hi

    I have the same problem as sanjeevkumar7.

    Ajax calls works fine by FF , and I get "Object doesn't support this property or method" js error on IE7.

    The ajax call populated some html elements.

    Regards,

    Math
  • narayannarayan Administrators
    This was the solution which worked for Sanjeev. Math, please try this and let us know if it works for you.

    --
    There was a bug in Sahi which needed to be fixed for this.
    To get it working for you, follow these steps:

    1) Open sahi/htdocs/spr/concat.js
    2) Search for

    SahiXHRWrapper.prototype.populateProps = function(){

    3) Replace it with

    // start
    SahiXHRWrapper.prototype.abort = function(){
    return this.xhr.abort();
    }
    SahiXHRWrapper.prototype.populateProps = function(){
    //end

    (We are essentially adding the abort function before populateProps)

    4) Restart Sahi, clear browser cache, and retry.

    That should fix your issue.
  • Hi Narayan,

    Thanks for quick reply. I do the changes and it works !

    Math
  • narayannarayan Administrators
    Great! This fix will be available in the next build. (Tomorrow)
Sign In or Register to comment.