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.
Cannot close printer popup
One of the testing I'm doing right now involves the existence of printing popup, which has neither a name nor a title.
I have tried several ways to close this popup, but none works. Those are:
_popup("/.*/")._closeWindow();
_popup("/.*/")._eval("top.close()");
_call(window.close());
In all of them, my sahi seems working forever and no failure at all, but it doesn't succeed as well. I have tried leaving the program worked for around an hour, still no result, so I stopped it. Does anyone know how to solve this problem?
I use Windows 7 Professional, I tried this both in Chrome 20.0.1132.47 and Firefox 13.0.1 (and nothing works) and I use Sahi v3.5 Build 2011-02-13
I have tried several ways to close this popup, but none works. Those are:
_popup("/.*/")._closeWindow();
_popup("/.*/")._eval("top.close()");
_call(window.close());
In all of them, my sahi seems working forever and no failure at all, but it doesn't succeed as well. I have tried leaving the program worked for around an hour, still no result, so I stopped it. Does anyone know how to solve this problem?
I use Windows 7 Professional, I tried this both in Chrome 20.0.1132.47 and Firefox 13.0.1 (and nothing works) and I use Sahi v3.5 Build 2011-02-13
Comments
Can you identify the popup or elements in the popup in the controller?
Thanks,
Theeran.
Anyway, the print screen is as follow...
i46[dot]tinypic[dot]com[slash]wtit84[dot]png
sorry, I cannot post link since I'm a new member
Have you tried opening the sahi controller from the popup?
Thanks,
Seems that I also face this issue when I click "print"
browser: Chorme, "print" link can not be opened when I run script but it can highlight(Script is recorded)
BTW, can not open controller from the popup.
<a class="printIcon" href="javascript:window.print();">Print</a>
Thanks,
Fion
If you’re using chrome, the printing window seems to belong to the operating system and not the browser itself. When it opens, all javascript stops working (including Sahi). My workaround was to exclude printing pages from the test cases.
I don’t know if it the same happens with other browsers.