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.

Browser not closing

TSheeleyTSheeley Members
edited November -1 in Sahi - Open Source
I know you have probably answered this in many ways, but it is the first time I have come across the problem and I cannot find a solution that works for me in the forums. I don't recall making any changes to configuration, but suddenly, the browser no longer closes at the end of a script. This happens if I am running a single script OR a suite. No, error, it just never closes. I've gone as far as to 'try' to put the commands at the end of my script. The ones I have tried thus far:

close();
_close();
_closeWindow();
browser.close();
stop();
_stop();

So far, nothing is working. The browser never closes.

Can anyone please help?

Comments

  • Hi TSheeley,

    Once you run the suite file, the browser is closed automatically. If you are running a single script from the Controller then the browser is not closed.

    Could you please post the <browserTypes> contents by clicking on the Configure on the dashboard.

    Also, have a look at : http://sahi.co.in/forums/viewtopic.php?id=2272

    Regards
    Sumitra
  • I'm running a suite from the command line. I don't remember making any changes to the configuration, but now the browser never closes. Here is my browserTypes content:

    <browserTypes>

    <browserType>

    <name>firefox</name>

    <displayName>Firefox</displayName>

    <icon>firefox.png</icon>

    <path>/usr/bin/firefox</path>

    <options>-profile "$userDir/browser/ff/profiles/sahi$threadNo" -no-remote</options>

    <processName>firefox.sh</processName>

    <capacity>5</capacity>

    </browserType>

    </browserTypes>

    Thanks once again
  • Hi TSheeley,

    Could you replace

    <processName>firefox.sh</processName>

    with

    <processName>firefox</processName>

    Restart Sahi and check?

    If that does not work, try with <processName>firefox-bin</processName> Restart and check .

    Regards
    Sumitra
  • I checked the url you sent "after" I posted my reply. Removing the .sh fixes this perfectly!!! Thanks.

    This still does not explain why the browsers were closing before. I never altered this until you told me to. But it works now, so again, thanks.

    TSheeley
This discussion has been closed.