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.

Closure of child window

Merajul HaqueMerajul Haque Members
edited November -1 in Sahi - Open Source
Hi,
My issue is that i want to close the pop up window. I select a option from main window to open a file in separate new window. After opening the separate window I want to close this window but not able to do so. Pls help.

Comments

  • Hi Merajul Haque,

    Could you please Ctrl+Hover on the new window and check if you are able to identify the elements on it. If so then try using:

    _popup("Popup window name")._closeWindow();

    Instead you can download the file using Sahi.

    For more details: http://sahi.co.in/w/handle-file-downloads

    Regards
    Sumitra
  • Thanks...... now its working
    I have little confusion regarding browser window and popup window. Could you pls make me understand what exact difference between them so that we can easily recognize them.
  • Hi Merajul Haque,

    A browser window is a tool used to view websites on the internet. It acts as a "window" to the world wide web. (otherwise known as the internet) .

    A popup window is a window which is opened from a parent window(browser window). The popup window is nothing but the child window.

    In Sahi, the elements on the popup window are been identified with _popup("popup window name") prefixed with it.

    Regards
    Sumitra
  • Thanks Sumitra. Now I am in better condition to understand this.
This discussion has been closed.