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.
Closeing Popup Tab
We are running all our tests using the Java driver. (The tool is fantastic btw).
We are having an issue when a page should open a popup (configured to pop-up into a new tab, then needs to close it. The close is accomplished through (pseudo code):
Browser b;
b.link(0).in(<ElementStub>cell).click();
net.sf.sahi.client.Browser popup = b.popup(pageHeader); //opened in previous line
popup.close();
We get a non-javascript notification:
The webpage you are viewing is trying to close the tab.
Do you want to close this tab?
Yes No
This is using IE8
How can we select OK without using the awt robot?
We are having an issue when a page should open a popup (configured to pop-up into a new tab, then needs to close it. The close is accomplished through (pseudo code):
Browser b;
b.link(0).in(<ElementStub>cell).click();
net.sf.sahi.client.Browser popup = b.popup(pageHeader); //opened in previous line
popup.close();
We get a non-javascript notification:
The webpage you are viewing is trying to close the tab.
Do you want to close this tab?
Yes No
This is using IE8
How can we select OK without using the awt robot?
This discussion has been closed.
Comments
Are you using the latest version of Sahi? We had fixed this bug in the May release.
Regards,
Narayan
Thanks