Bugs item #1576223, was opened at 2006-10-12 23:51
Message generated for change (Comment added) made by henryju
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1576223&group_id=61302
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: Release 1.3
Status: Open
Resolution: None
Priority: 5
Submitted By: bandaru (bandaru)
Assigned to: Nobody/Anonymous (nobody)
Summary: window.open on button click
Initial Comment:
Hi,
I have a button which calls a javascript function to
open a new window. I am using the clickButton(String
btnId) method, which is not opening the new window.
thanks.
Bandaru
----------------------------------------------------------------------
>Comment By: Julien HENRY (henryju)
Date: 2006-10-13 09:38
Message:
Logged In: YES
user_id=1235926
Try this code :
import net.sourceforge.jwebunit.WebTestCase;
public class WindowOpenTest extends WebTestCase {
public void setUp() throws Exception {
super.setUp();
getTestContext().setBaseUrl("http://www.javascript-coder.com/window-popup/");
beginAt("javascript-window-open-example1.html");
}
public void testOpen() {
assertTitleEquals("JavaScript Window Open Example");
clickLinkWithText("Open the JavaScript Window
Example 1");
gotoWindow(1);
assertTitleMatch("JavaScript Coder: generates code
for HTML form,JavaScript form*");
}
}
----------------------------------------------------------------------
Comment By: Julien HENRY (henryju)
Date: 2006-10-13 09:09
Message:
Logged In: YES
user_id=1235926
Could you provide more informations : a sample test case
could help to understand your problem.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1576223&group_id=61302
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development