Hi ,
In my project having some user level specification validations, if PASS means we are supposed to allow the application to use and FAIL means we are explicitly closing the browser with some warning message. I've tried to implement the window.close() method in native JS across JAVA code which is shown below.
From my unit testing sort of code works well in IE but where as Firefox & Chrome is not behaving as expected.Is there any way to achieve from framework itself ?
Let me know your thoughts!
In my project having some user level specification validations, if PASS means we are supposed to allow the application to use and FAIL means we are explicitly closing the browser with some warning message. I've tried to implement the window.close() method in native JS across JAVA code which is shown below.
Code:
private native void closeBrwsrWndw() /*-{ $wnd.close(); }-*/;
Let me know your thoughts!
Comment