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 close current window

Debakanta sahuDebakanta sahu Members
edited November -1 in Sahi - Open Source
Hi,
In my application a link is present on a page when i click on it a new window is appeared with sahi controller. and i want to close the Window and controller both (it is a flex application and i use sahi_pro).i tried it using following commands but having no luck on it.

browser.close();
window.close();
self.close();

Comments

  • to select base window(main app browser window)- _selectWindow();
    to close popup window - _popup("NAMEOFWINDOW")._closeWindow();

    let me know if still you are not getting it one
    -Ashish
Sign In or Register to comment.