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.
Safari issue on closing all windows on script termination
Hi all,
Having issue with Safari in it's closing all windows instead of just one during test suite....
Since just starting out with Sahi, I currently just have two suites, one with 2 scripts and another with 3.
In initial testing with Safari 4, I noticed that after the first script finishes, the second script is already opening the second window, so that when Sahi is closing the window of the first script, BOTH are getting closed, failing the rest of the suite, since the window is no longer open. (I put in a bunch of _wait()'s to find out.. but this is the issue; if I put a _wait() at the end of the first script, the second script is actually starting, then the close of the first is performed and both windows close.)
Is there some kind of setting or command that can be done to ensure that the first script's window is closed before the next script kicks off?
BTW, I do not have a problem when testing with Firefox, IE or Chrome.
Thanks for taking time.
Regards,
Glenn
Having issue with Safari in it's closing all windows instead of just one during test suite....
Since just starting out with Sahi, I currently just have two suites, one with 2 scripts and another with 3.
In initial testing with Safari 4, I noticed that after the first script finishes, the second script is already opening the second window, so that when Sahi is closing the window of the first script, BOTH are getting closed, failing the rest of the suite, since the window is no longer open. (I put in a bunch of _wait()'s to find out.. but this is the issue; if I put a _wait() at the end of the first script, the second script is actually starting, then the close of the first is performed and both windows close.)
Is there some kind of setting or command that can be done to ensure that the first script's window is closed before the next script kicks off?
BTW, I do not have a problem when testing with Firefox, IE or Chrome.
Thanks for taking time.
Regards,
Glenn
Comments
Additionally, both machines are running Windows 7.
Thanks for any help on the Safari 4 issue.
Glenn
Safari does not isolate cookies from multiple windows. You need to run Safari tests one at a time. Change the "capacity" param in browser_types.xml to 1.
<capacity>1</capacity>
Regards,
Narayan
Thank you, doing this update has fixed the issue w/ Safari 4.
Kind Regards,
Glenn