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.

HTTPS Firefox 3.6.3 problem

KareemJKareemJ Members
edited November -1 in Sahi - Open Source
Hello,
I have a close problem to this one. (or might b totally different)
In my application, I have a POST request

When I'm running sahi (I;m not recording or playnig back), for some reason, the POST takes forever trying to load (and it doesn't load) and so I can't get the data I need. I can see that this is being called (mywebsite/_s_/dun/SessionState_ping), but the xhr is not getting a response.
When I remove the sahi proxy settings, it all works fine. (I tried the above suggestion and it didn't help me at all).


Here are some more info:
From Firebug:

User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 115
Connection keep-alive
sahi-isxhr true
Content-Type application/json; charset=UTF-8
X-Requested-With XMLHttpRequest
Content-Length 7800



From Sahi:

Sahi
Version : V3
Build : 2010-04-30

Browser
UserAgent : Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)
Name : Mozilla Firefox
Version : 5.0 (Windows; en-US)
Native XmlHTTPRequest : true
Is Java enabled : true
Is cookie enabled : true

Operating System
Name : Windows XP
Version : 5.1
Architecture : x86
Is process list available : true

Java
Java Installed Directory : C:\Program Files\Java\jre6
JRE Version : 1.6.0_20
Is keytool available : true


Do you have any input on this?

Comments

  • narayannarayan Administrators
    Hi Kareem,

    Could you clear browser cache and try again? Could you also try on another browser and check if it works? From your description, it looks like Sahi's response is not reaching the browser. Could you check if Sahi is working correctly on some simple sites (like http://sahi.co.in/demo/)?
    Did you make any changes to sahi.properties or userdata.properties?

    Regards,
    Narayan
  • KareemJKareemJ Members
    edited May 2010
    Hello Narayan,
    There is no problem with the cache or cookies, I clear them.
    I worked on recreating the same demo example.
    It worked, nevertheless, yahoo page didn't load correctly.. it was missing parts.

    I also edited the userdata.properties file (after the POST didn't work)
    I added this:
    xhr.wait_ready_states = 2,3
    io.buffer_size=32768

    I also edited the sahi.properties file (before testing)
    keytool.path

    and I ran the keytool command once..


    Anyway, I re-tested this on a different machine with a brand new setup.
    I edited this sahi.properties file (before testing)
    keytool.path

    And then I tested it on IE6 and it worked (after a lot of certificates handling).
    On the other hand, I tested it on Firefox and I couldn't even get to the same page, the pages would load missing many parts and so i couldn't test it..

    I noticed in sahi info that on Firefox: Native XmlHTTPRequest : true
    As for on IE it was: Native XmlHTTPRequest : false


    Any ideas?
  • narayannarayan Administrators
    Kareem,

    It wasn't clear from your report that you were using HTTPS. Follow the instructions here: http://sahi.co.in/w/https-ssl to work with SSL.

    Regards,
    Narayan
  • KareemJKareemJ Members
    Narayan,
    I did follow these instructions (+ I mentioned in my previous post how I handled the certificates.). So I'm aware of this and I handle it.


    Do you have any input on this part of my last post?

    "
    Anyway, I re-tested this on a different machine with a brand new setup.
    I edited this sahi.properties file (before testing)
    keytool.path

    And then I tested it on IE6 and it worked (after a lot of certificates handling).
    On the other hand, I tested it on Firefox and I couldn't even get to the same page, the pages would load missing many parts and so i couldn't test it..

    I noticed in sahi info that on Firefox: Native XmlHTTPRequest : true
    As for on IE it was: Native XmlHTTPRequest : false
    "
    p.s.: On FF, I did accept all certificates and I have all the sites with green dots next to them.
  • narayannarayan Administrators
    Hi Kareem,
    I noticed in sahi info that on Firefox: Native XmlHTTPRequest : true
    As for on IE it was: Native XmlHTTPRequest : false

    This does not affect the page loading.

    The problem is definitely with the certificates. Try this. Close Firefox, open it again, traverse to https://sahi.example.com/_s_/dyn/SSLManager and check if they still show up as green.

    Also make sure that when you accept certificates, "Permanently store this exception" is checked.

    If this still does not work, please email us at support@sahi.co.in and we will see what is wrong via desktop sharing or other means.

    Regards,
    Narayan
  • KareemJKareemJ Members
    Hello Narayan,
    I tried what you suggested and all the certificates have green dots next to them. I also always have
    "Permanently store this exception" checked.

    Unfortunately, I can't share this.

    If you have any other suggestions, then I would appreciate the support, if not, I guess that would be the end of it.

    Thanks!
  • narayannarayan Administrators
    Hi Kareem,

    The browser cookies are flushed, cache cleared, all certificates green, but still something wrong. We have also re-confirmed here that it works properly on FF 3.6.3. Now the only thing thing we can doubt is that some plugin on Firefox is messing with the requests. You could disable any plugins on the browser and check if that helps. You could also check if it works on some other machine just to eliminate any machine specific issues. This seems to be specific to your environment, and it may be tough to troubleshoot from here.

    Feel free to email us at support@sahi.co.in if you find anything more.

    Regards,
    Narayan
  • KareemJKareemJ Members
    Narayan,
    You found it!
    I had a couple of Add-ons.. I took firebug off and the POST worked as designed.

    Thanks for the support.
  • narayannarayan Administrators
    Very glad to hear that!

    Regards,
    Narayan
This discussion has been closed.