18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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
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?
close();
_close();
_closeWindow();
browser.close();
stop();
_stop();
So far, nothing is working. The browser never closes.
Can anyone please help?
This discussion has been closed.
Comments
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
<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
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
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