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.
Popup close method is not working properly
Hi Narayan,
I am using sahi java api to automate my application.
Here I am getting one issue with Popup close.
When i use browser.popup("/.*/").close();
it is closing the main window instead of the closing the popup window.
Please help me how to handle this scenario.
Regards,
Shankar L
I am using sahi java api to automate my application.
Here I am getting one issue with Popup close.
When i use browser.popup("/.*/").close();
it is closing the main window instead of the closing the popup window.
Please help me how to handle this scenario.
Regards,
Shankar L
Comments
Please help me how to close the popup window using the Sahi Java API.
Define the method like below:
public void closePopup(String popupName) {
browser.popup(popupName).close();
}
Call the method wherever required:
closePopup("actualPopupName");