[Webtest] [webtest][JIRA] Closed: (WT-54) window.close support?
Paul King (JIRA)
webtest@lists.canoo.com
Mon, 19 Dec 2005 23:14:15 +0100 (CET)
[ http://webtest-community.canoo.com/jira/browse/WT-54?page=history ]
Paul King closed WT-54:
-----------------------
Appears fixed (Marc's recent changes seem to work better)
> window.close support?
> ---------------------
>
> Key: WT-54
> URL: http://webtest-community.canoo.com/jira/browse/WT-54
> Project: WebTest
> Type: Bug
> Versions: 1.7
> Environment: build 832, windows 2000 client, SUT on Linux server
> Reporter: Lisa Crispin
> Assignee: Paul King
> Fix For: 1.7
>
> Not sure if this is a bug, but no response on mailing list so assuming maybe a bug.
> When I have a step to click a close button that does a window.close, there is no error (so it finds the button) but the popup window doesn't close. Is this supported? Here's an example of the main window, the popup window and the WebTest steps. (Hey, I'm getting pretty good with HTML! ;-> )
> Thanks,
> Lisa
>
> 1. The main window html:
> <HTML>
> <HEAD>
> <TITLE>Test Popup</TITLE>
> </HEAD>
> <BODY>
> <FORM>
> <SCRIPT language="javascript" defer> window.open('/testPopup1.html', "popupwindow"); </SCRIPT>
> <P>There should be a popup above this page.</P>
> </FORM>
> </BODY>
> </HTML>
>
> 2. The popup window html:
> <HTML>
> <HEAD>
> <TITLE>Popup Page</TITLE>
> </HEAD>
> <BODY>
> <FORM>
> <P>This is the popup page.</P>
> This is some text
> <INPUT name="closeButton" id="closeButton" type="button" value="Close" class="wideButton" onclick="javascript: window.close();">
> </FORM>
> </BODY>
> </HTML>
>
> 3. The WebTest steps:
> <invoke stepid="try the popup" url="/testPopup.html"/>
> <selectWindow stepid="get the popup window"
> name="popupwindow"/>
> <verifytext stepid="verify window"
> text="This is the popup"/>
> <clickButton stepid="close the window"
> htmlid="closeButton"/>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira