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.

Can't run multiple tests in FireFox version 13!

NaomiCNaomiC Members
edited June 2012 in Sahi - Open Source
OS: Mac OS X 10.6.8
Browser: FireFox v.13
Sahi OS Build: 2011-07-19

After extensive research, we decided to go with Sahi. Long story short, everything has worked so far until I upgraded FireFox to the latest version (13, which came out in the early June, 2012).

Since the upgrade, the FireFox SafeMode appeared at random time during the test run. Upon closing the SafeMode without checking all the options on the window, the test execution seemed to halt. Running a single test seems fine, so the problem is only with running multiple tests. We open and close the browser before and after each test, and the SafeMode appears after closing the browser and before attempting to relaunch it again.

FireFox version 12 or earlier still works fine with this version of Sahi, so I went back to version 12 for now.

Comments

  • Same issue for us as well. Anyone from Sahi looking into it?
  • narayannarayan Administrators
    Hi Folks,

    Firefox 13 introduced a crash recovery system which gets triggered after 2 crashes. Sahi force kills a browser, and Firefox sees it as a crash. So after running 2 tests in a suite, Firefox shows a "safe mode" dialog.

    To fix this, we need to change the setting in Firefox which controls the number of maximum crashes before which the Safe dialog is triggered. This setting is toolkit.startup.max_resumed_crashes in pref.js.

    Steps to fix this:

    1) Open sahi/config/ff_profile_template/pref.js
    This is the template profile from which Sahi creates all other FF profiles.
    At the end of it, add
    user_pref("toolkit.startup.max_resumed_crashes", 999999999);
    

    2) Delete everything inside sahi/userdata/browser/ff/profiles (It will have folders like sahi0, sahi1 etc.. Delete them all)

    3) Restart Sahi. This will re create all folders you deleted in the previous step.

    Run your suite and check.

    Regards,
    Narayan
  • Thanks, it works for me, thanks.
  • Good morning

    I have the following problem within Sahi, when mapping objects within a website, this throws me a pop-up and within that there are objects which I use for test automation. The question is how I can map the objects within this pop-up because I recognized sahi all as one object?

    If I can do this kind of question in this forum?

    Thanks for your help!
  • NaomiCNaomiC Members
    @Charlie70 You should create a new forum topic for your question.
Sign In or Register to comment.