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 should not close after script execution (using suite)
I understand that Sahi would close the browser every time a script is executed successfully. I don't want Sahi to close the browser after execution.
ie, I would like to run different scripts sequentially.
Script1 - Login (runs on /login.aspx)
Script2 - Add User (runs on /addUser.aspx)
Script3 - Add role (runs on /addRole.aspx)
Currently, when I execute my suite, it executes the first script successfully and closes my browser. When it tries to execute the second script, my session had already been logged out and hence, my Script2 is not able to proceed with its functionality. Same as with Script3 as well.
If the browser had not closed after Script1 execution, Script2 and Script3 would continue to run. Please let me know how can we stop the browser from closing automatically (after each script execution).
ie, I would like to run different scripts sequentially.
Script1 - Login (runs on /login.aspx)
Script2 - Add User (runs on /addUser.aspx)
Script3 - Add role (runs on /addRole.aspx)
Currently, when I execute my suite, it executes the first script successfully and closes my browser. When it tries to execute the second script, my session had already been logged out and hence, my Script2 is not able to proceed with its functionality. Same as with Script3 as well.
If the browser had not closed after Script1 execution, Script2 and Script3 would continue to run. Please let me know how can we stop the browser from closing automatically (after each script execution).
Answers
http://sahi.co.in/forums/discussion/2814/executing-all-commands-in-the-same-browser-at-different-points-of-time/p1
Thanks much. It helped a lot.