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.

Closing opened browsers after replay is completed

edited November -1 in Sahi - Open Source
hi ,
I want to extend the feature of closing the opened browsers after replay is done. can you please suggest on how to close main window and also the child windows opened from main window

Comments

  • narayannarayan Administrators
    If you are running from a suite, the browsers should automatically close after each test.

    If you want to close a particular popup, you could do

    _popup("myWin")._call(window.close());

    (Adding _popup("myWin")._closeWindow() to the Sahi APIs)

    Javascript (and hence Sahi) will not allow closing the base window itself.
Sign In or Register to comment.