New issue 193 by daniel.g...@gmail.com: Create a new keywod to close a
window without hiding the window
http://code.google.com/p/robotframework-swinglibrary/issues/detail?id=193
The current closeWindow keyword sends a window closing event to the event
queue and then hides the window. There is, however, a problem with hiding
the window: For example when answering "No" in a confirm exit dialog. The
user expects to continue working with the application but the main window
is gone.
Is there still interest in getting this fixed?
Yes, I would say so - we have hacked around this too and it's somewhat more
central as confirmation dialogs when closing applications are hardly
unusual.
Whether it should be a new keyword, or the existing one should be fixed to
not hide the window, is another question.
One way to fix, as we have done, is to use Abbot's window closing method
instead of Jemmy's.
btw I think this and issue 196 are essentially two different suggestions
for the same problem.
I am inclining more towards changing the default behavior. Seems really
strange that Jemmy is not actually closing the windows at all. I'll change
the implementation to use Abbot, and if it passes our own tests, I'll push
that.
Geoff, are you doing anything else in your patched version than this:
public void closeWindow(String identifier) {
FrameOperator frameOperator = operatorFactory
.createOperator(identifier);
new WindowTester().actionClose(frameOperator.getSource());
}
This passes the SwingLibrary tests, but not the test script attached to
issue 196