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.

How to avoid browser window close in between scripts complete execution during a suite file run?

LawZLawZ Members
edited May 2013 in Sahi - Open Source
Hi to All:

I'm using testrunner to run a suite file in a single thread with a single browser session for my test, but browser closes after the 1st script is run successfully. How do set to make the browser not to close after each script run in the suite file? Pls help, many thanks!!!

Answers

  • BhavithaBhavitha Members
    You can use
    -useSingleSession : -true or false. If true runs all scripts in a single browser without closing it between scripts

    Bhavitha
  • @ Bhavitha,

    Can you please tell me in which file (where) we need to set : useSingleSession : -true or false
    Exact syntax??

    Thanks.
  • Hey NewYorker,
    You can set useSingleSession as true or false by editing sahi/userdata/bin/testrunner.bat. The variable name is SINGLE_SESSION.

    Regards.
Sign In or Register to comment.