[Webtest] Is it possible to close the current window from WebTest?
Marc Guillemot
webtest@lists.canoo.com
Fri, 21 Oct 2005 13:06:23 +0200
I think that it isn't currently possible.
Can you tell a bit more why you need this? If you want to test some
onunload events, I fear that htmlunit doesn't execute them yet.
Marc.
Maxim Annyuk wrote:
> Hi,
>
> Is it possible to close current window from the WebTest script?
>
> The only way I know is to add a 'Close' button on the page and click on it:
>
> <clickButton description="close the window" htmlid="closeButton"/>
>
> The problem is that I don't want to add 'close' button on some pages from
> considerations of HTML design. Are there other ways?
>
> Thanks!